• #31402
    Forcetalks

    How can we track the status of the current running batch job?

    How can we track the status of the current running batch job?

     

    #31474
    Forcetalks

    Hello Chanchal,

    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[0].status);

    Thanks.

     

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?