Loading

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

Date de publication: Oct 13, 2022
Description
Scheduled Apex jobs remain in Queued status on the Apex Jobs page. 
Résolution
  • 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.
Ressources supplémentaires

Monitor the Apex Job Queue

Numéro d’article de la base de connaissances

000383866

 
Chargement
Salesforce Help | Article