Batch Job Status


Below is the list of batch job statuses along with a short description to each statuses.

1. Holding: 
When a job is submitted, it is held in the Apex flex queue until the system has enough resources to process it. 

This status indicates that the job is waiting for available resources.

2. Queued: 
This status indicates that the job is awaiting execution. 

Once the necessary resources are available, the job will move on to the next status.

3. Preparing: 
The start method of the job has been invoked, and the system is preparing to process the batch of records. 

The duration of this status depends on the size of the batch.

4. Processing: 
The job is currently being processed. 

This is an active status indicating that the system is carrying out the necessary tasks.

5. Aborted: 
If a user decides to abort the job, it will be marked as Aborted. 

This status indicates that the job was stopped manually before completion.

6. Completed: 
This status signifies that the job has finished processing all the records, either with or without failures. 

It indicates successful completion of the task.

7. Failed: 
In case of a system failure, this status is assigned to the job. 

It denotes that the job could not be executed successfully due to technical issues.

Understanding the different statuses for batch jobs is crucial in monitoring and managing your Apex processes effectively.

By familiarizing yourself with these statuses, you can easily track the progress of your jobs and ensure successful execution.

Reference Link - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm

Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0