0

I have two different Apex Jobs scheduled at 12:00 AM as shown below:

Schedule Screenshot

Which job will run on next day? Will both jobs run one after another or only one job will run on next day?

Both jobs refer to same class.

5
  • in your pic. You can see Next Scheduled Run means your both job will run next day as well..
    – Ratan Paul
    Mar 14 '16 at 11:58
  • They will both run asynchronously. Mar 14 '16 at 12:01
  • 1
    they will run asynchronously. but not sure about order. but both job will run. Mar 14 '16 at 12:02
  • Thanks for quick response #Ratan #Chris Duncombe #Tushar Sharma Please correct me if I am wrong. Both jobs will run on next day but we will not be able to predict the order. Mar 14 '16 at 12:19
  • Correct. Order is not guaranteed
    – cropredy
    Mar 14 '16 at 15:55
1

Take a look at the Apex Scheduler page.

Salesforce schedules the class for execution at the specified time. Actual execution may be delayed based on service availability.

So as resources become available, your jobs will begin executing, but order is not guaranteed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.