You need to sign in to do that
Don't have an account?
Sean Barczynski
Trouble with scheduled apex
Hello,
I'm having some trouble getting scheduled Apex classes to run consistently and correctly.
I have one that sends out emails every morning to clients who have meetings in 2 days. This class is scheduled to run every morning (including the weekends). Is there any reason it would run for a few days and then just stop? If it experiences an exception, does that then prevent it from running the following day? Do they run on weekends? I have yet to see one run on the weekends, but that may just be a coincidence. In the list of scheduled classes, it always says that they run, but no emails are being sent...
The second scheduled class I have is supposed to update all contacts and, in turn, trigger my Contact update triggers. This class seems to be running correctly, but none of the Contact onUpdate triggers are running correctly. However, when I edit an individual Contact, the triggers run correctly.
I'm having some trouble getting scheduled Apex classes to run consistently and correctly.
I have one that sends out emails every morning to clients who have meetings in 2 days. This class is scheduled to run every morning (including the weekends). Is there any reason it would run for a few days and then just stop? If it experiences an exception, does that then prevent it from running the following day? Do they run on weekends? I have yet to see one run on the weekends, but that may just be a coincidence. In the list of scheduled classes, it always says that they run, but no emails are being sent...
The second scheduled class I have is supposed to update all contacts and, in turn, trigger my Contact update triggers. This class seems to be running correctly, but none of the Contact onUpdate triggers are running correctly. However, when I edit an individual Contact, the triggers run correctly.
Update All Contacts class: