You need to sign in to do that
Don't have an account?
Montitoring Apex Batch Jobs
Hello,
I'm facing problem with Batch..
Two batches are called one after another .. such that final result of first batch is providing data to second Batch,
My Code is working if its an Ideal condition, i.e. second batch starts after first batch is fully executed..
but if second batch executes while first is still executing then it creates problem..
So my problem is that, i want to control the execution of second batch..
im already using other schedulars so im trying to avoid it....
is there any way to monitor batch jobs means to put conditions on when second batch executes
Thank You
Rahulsharma
Yikes -- the only reliable persistent state you can use is a SFDC custom object that batch one updates when it is finshed and batch 2 reads before it starts. You'll need some naming conventions here for the value(s) in this custom object since your batch1-batch 2 sequence will presumably run repeatedly over the calendar