You need to sign in to do that
Don't have an account?
Bi Hồ
Apex job doesn't run on time
Hi All,
I created 1 scheduled job, which will run every 5 minutes like below.
It can run normally, but I wonder why at the time 8h45, 8h50, 8h55, 9h00, 9h5, and 9h10, it cannot run the apex job. Then from 9h6 to 9h11, it runs 6 times. It is all apex jobs that should be run from 8h45 to 9h10.
I have 2 questions:
1. Why the apex job doesn't run on time?
2. Can I handle it when the apex job doesn't run on time? e.g: send an email to the administrator
Thank you,
I created 1 scheduled job, which will run every 5 minutes like below.
It can run normally, but I wonder why at the time 8h45, 8h50, 8h55, 9h00, 9h5, and 9h10, it cannot run the apex job. Then from 9h6 to 9h11, it runs 6 times. It is all apex jobs that should be run from 8h45 to 9h10.
I have 2 questions:
1. Why the apex job doesn't run on time?
2. Can I handle it when the apex job doesn't run on time? e.g: send an email to the administrator
Thank you,
Salesforce schedules the class for execution at the specified time. Actual execution may be delayed based on service availability.
It's a multi-tenant system. Your server may be loaded up with requests at the time the job is scheduled to execute.
Refer below for further details-
https://help.salesforce.com/s/articleView?id=sf.code_schedule_batch_apex.htm&type=5
Mark as best answer is this helps!
Thanks!