posted Sep 11, 2016, 5:41 PM by Ezra Kenigsberg
[
updated Sep 13, 2016, 7:34 AM
]
Is this a bug?
When I schedule a job via the Immediate Window using this command. . .
System.schedule('Batch Update Contacts (Daily at 2:00 PM)', '0 0 14 * * ?', new ScheduleBatchUpdate_Contacts());
. . . this is what shows up in Setup | Monitoring | Scheduled Jobs:
The UI has it wrong: this job will run every day, NOT just on the first of each month.
In the meantime, I'd say:
|
a job that can be scheduled via the UI should be scheduled via the UI, not the Immediate Window.
any job that runs once-daily or less should be scheduled via the UI. |
2016-09-13 addition: Yup, it's a bug.
Using the string below runs the same schedule from the Immediate Window. . . System.schedule('Batch Update Contacts (Daily at 2:00 PM)', '0 0 14 ? * Sun,Mon,Tue,Wed,Thu,Fri,Sat', new ScheduleBatchUpdate_Contacts());
. . . and shows up correctly in the UI: |
|