You need to sign in to do that
Don't have an account?
sayirb
Abort Bach process on error
Hi,
I have a Scheduled batch process which calls an External API (10 call outs in 5 jobs). This is scheduled for every month. Sometimes "Timeout error " occurs in External API.
I want to abort all other Bach process if any error occurs, and reschedule the process for next day in the month.
How I can do it in Apex programming ?
I am struck with this problem, please help me
Thanks
You might want to look at serializing batch jobs that are dependent on each other.
Here's a cookbook solution that might kickstart some ideas:
http://developer.force.com/cookbook/recipe/serialize-batch-apex
This way if one job fails, the next in line won't run, and the system administrator will get notified.
- Anup