-1

I want to know the status of a batch like whether it is schedule or it's running

0

You can query the ApexAsyncJob object to determine the status of a Batch job. You'll need to know the Job ID (obtained when you call Database.executeBatch or System.scheduleBatch).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.