Loading

Scheduled Apex jobs remain in queued status on the Apex jobs page

Дата публикации: Oct 13, 2022
Описание
Scheduled Apex jobs remain in Queued status on the Apex Jobs page. 
Решение
  • Scheduled jobs will continue to appear on the Apex Jobs page in addition to the Scheduled Jobs page.
  • By design, scheduled Apex jobs will always stays in the Queued status until the job has no NextFireTime. It then gets marked Completed, or if the job is aborted, then the AsyncApexJob row gets marked Aborted.
  • If it is a job that recurs indefinitely, then it will never get marked as Completed. It will only get marked completed if after running the execute method, the NextFireTime is changed to null.
  • Scheduled jobs can’t be aborted from the Apex Jobs page; use the Scheduled Jobs page to manage or delete scheduled jobs.
  • Even though a scheduled job appears on both the Apex Jobs and Scheduled Jobs pages, it counts only once against the asynchronous Apex execution limit.
Дополнительные ресурсы

Monitor the Apex Job Queue

Номер статьи базы знаний

000383866

 
Загрузка
Salesforce Help | Article