You need to sign in to do that
Don't have an account?
Varada Bhanage 5
Scheduled job automatically stopped without any warning
Hello all,
We have written apex schedular job and which gets after every 1 minute.
However that job suddenly stopped working on 14th of January 2017.
We have rescheuled job again however we want to know why this happened?
Anyone has any idea about this?
If yes please help us in inderstanding.
Is there any way to notify administartor if job stops working?
Help is much approciated .
Thanks in advance.
Kind regards,
Varada
We have written apex schedular job and which gets after every 1 minute.
However that job suddenly stopped working on 14th of January 2017.
We have rescheuled job again however we want to know why this happened?
Anyone has any idea about this?
If yes please help us in inderstanding.
Is there any way to notify administartor if job stops working?
Help is much approciated .
Thanks in advance.
Kind regards,
Varada
There is an idea on the success community for which you can upvote reagrding the same.
- https://success.salesforce.com/ideaView?id=0873A000000CNy3QAG
Salesforce will not notify user once Schedule apex Job is Completed or stopped.If you want notification to be sent you need to do it manually by coding.You can use messaging.sendemail() in finish method to notify once job is completed or stopped.
Regards,
Nagendra.
All Answers
Schedule/Batch is not guaranteed to execute on the time you've given. They will be in Queue and gets executed when the system is free.
Another thing to potentially look into is concurrent batch limits:
- https://help.salesforce.com/apex/HTViewSolution?id=000182449&language=en_US
- https://success.salesforce.com/issues_view?id=a1p30000000T3rnAAC
This will happen if the org's are running many batches in a small time frame!Please mark this as solved if the information helps.
Best Regards,
Nagendra.
Thanks for help.We understand that schedular may not get executed at time we have mentioned. but in our case it has stopped working.
We noticed it after 3 days that is on 17th january where we found that job has absolutley not executed after 14th of january.
So our main concern is why this happened and can we get any notification whenn such thing happens?
There is an idea on the success community for which you can upvote reagrding the same.
- https://success.salesforce.com/ideaView?id=0873A000000CNy3QAG
Salesforce will not notify user once Schedule apex Job is Completed or stopped.If you want notification to be sent you need to do it manually by coding.You can use messaging.sendemail() in finish method to notify once job is completed or stopped.
Regards,
Nagendra.
Thanks for help.
Marking this question as resolved.
Regards,
Varada