You need to sign in to do that
Don't have an account?
Alta Montclair
Scheduled everyday APEX job does not run on the next day
Hello,
I have a scheduled class SendBirthdayCards_BatchJob that is setup within the Setup->Monitoring->Scheduled Jobs. It is set to run everyday at 9PM. It shows started and next scheduled run. When I just set it up, it ran emmideatelly. However it does not run on the next day, started and next scheduled dates are changed, but job was not run. I cannot see any records at all in APEX jobs list.
Can you help me to resolve the issue?
Thanks in advance.
I have a scheduled class SendBirthdayCards_BatchJob that is setup within the Setup->Monitoring->Scheduled Jobs. It is set to run everyday at 9PM. It shows started and next scheduled run. When I just set it up, it ran emmideatelly. However it does not run on the next day, started and next scheduled dates are changed, but job was not run. I cannot see any records at all in APEX jobs list.
Can you help me to resolve the issue?
Thanks in advance.
String cron='0 0 21 * 1 ? 2015 ';
System.schedule('schedulejobname',sch,cron);
try this to schedule your job, place this code in developer console ctrl+E click execute.
it is running immediately means check your time zones in org.kindly let me know any doubts
Thanks,
jagan
I executed the code . It ran immediately. My org time zone is correct. Schould I check wthether it runs tomorrow?
Thanks for your help.
Irina
System.schedule('schedulejobname',sch,cron); in your code
to
System.schedule('schedulejobname',cron,sch);
System.schedule('schedulejobname',sch,cron); in your code
to
System.schedule('schedulejobname',cron,sch);
Thanks,
jagansfdc@outlook.com
I will check tomorrow if it runs again after I set it up via Developer Console