- August 9, 2018 at 2:19 pm #31402chanchal kumar #19
How can we track the status of the current running batch job?
How can we track the status of the current running batch job?August 10, 2018 at 6:50 am #31474Avnish Yadav #3
We can track the status of the running batch job by using:-
List<AsyncApexJob> myrunningjob = [Select Id, Status, ApexClass.Name From AsyncApexJob where ApexClassId =: yourclassid order by CreatedDate DESC limit 1];
System.debug(‘@@@@@ running job status is: @@@’+ myrunningjob.status);
Please Register to reply to this topic. /