Loading

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

Publiceringsdatum: Oct 13, 2022
Beskrivning
Scheduled Apex jobs remain in Queued status on the Apex Jobs page. 
Lösning
  • 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.
Ytterligare resurser

Monitor the Apex Job Queue

Knowledge-artikelnummer

000383866

 
Laddar
Salesforce Help | Article