You need to sign in to do that
Don't have an account?

Wait time added between batches in scheduled chron job
For a scheduled chron job that processes say, 200 batches at a time, a pause of say, 20 minutes, needs to be introduced in between each batch that's processed.
How would that be accomplished?
What should the code look like?
Where should it be inserted?
Hi DML2020
You can't hold the chunks for a while. You can simply schedule the batch Apex for a certain amount of time.
I hope you find the above solution helpful. If it does, please mark it as the Best Answer to help others too.
Thanks and Regards,
Suraj Tripathi