---
schema_version: "1"
id: bd7348e2ff38141856d043e73fea96384f59162c50b5b13e67d1b19299e29d5d
title: Monitor the Apex Job Queue
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/code_apex_job.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.code_apex_job.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ab5244a59be8ca0442faf869e2bae0ccb3f01e8c865777d117018a2e67619112
description: The Apex Jobs Setup page has information about Apex jobs, including the percentage of async Apex usage and the number of Apex operations that have been used out of the 24-hour org limit. Monitor the status of Apex jobs to mitigate potential limit problems before they happen.
products:
  - Salesforce Platform
release: "264"
---
# Monitor the Apex Job Queue

The Apex Jobs Setup page has information about Apex jobs, including the percentage of async Apex usage and the number of Apex operations that have been used out of the 24-hour org limit. Monitor the status of Apex jobs to mitigate potential limit problems before they happen.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic (<a href="https://help.salesforce.com/s/articleView?id=xcloud.overview_edition_lex_only.htm&amp;type=5&amp;language=en_US" target="_blank">not available in all orgs</a>) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <span id="code_apex_job__Apex_Code_editions_text"><a name="code_apex_job__Apex_Code_editions_text"></a><strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, <strong>Developer</strong>, and <strong>Database.com</strong> Editions</span></td></tr></tbody></table>

The Apex job queue lists Apex jobs that have been submitted for execution in the past seven days. If you want to see Apex jobs older than seven days, use the All Scheduled Jobs page for scheduled jobs or access them programmatically via [AsyncApexJob](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_asyncapexjob.htm). Jobs that have completed execution are listed, as well as jobs that aren’t yet finished, including:

- Apex methods with the `future` annotation that haven’t yet been executed. Such jobs are listed as Future in the Job Type column, and don’t have values in the Total Batches or Batches Processed columns.
- Apex classes that implement the `Queueable` interface that haven’t yet been executed. Such jobs are listed as Future in the Job Type column, and don’t have values in the Total Batches or Batches Processed columns.
- Scheduled Apex jobs that haven’t yet finished executing.
    - Such jobs are listed as Scheduled Apex in the Job Type column, don’t have values in the Total Batches or Batches Processed columns, and always have a Queued status.
    - Scheduled jobs can’t be aborted from this page; use the All Scheduled Jobs page to manage or delete scheduled jobs.
    - Even though a scheduled job appears on both the Apex Jobs and All Scheduled Jobs pages, it counts only one time against the asynchronous Apex execution limit.
- Apex sharing recalculation batch jobs that haven’t yet finished execution. Such jobs are listed as Sharing Recalculation in the Job Type column. The records in a sharing recalculation job are automatically split into batches. The Total Batches column lists the total number of batches for the job. The Batches Processed column lists the number of batches that have already been processed.
- Batch Apex jobs that haven’t yet finished execution. Such jobs are listed as Batch Apex in the Job Type column. The records in a batch Apex job are automatically split into batches. The Total Batches column lists the total number of batches for the job. The Batches Processed column lists the number of batches that have already been processed.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_code-264-0-0-production-enus/789bc523-706b-4ae4-8fe9-be6322e38b6b/images/icon_note.png)

Note Sharing recalculation batch jobs are currently available through a limited release program. For information on enabling Apex sharing recalculation batch jobs for your organization, contact Salesforce.

This table lists all the possible job status values. The Status column lists the status of the job. The possible values are:

 
| Status | Description |
| --- | --- |
| Queued | The job is awaiting execution. |
| Preparing | The `start` method of the job has been invoked. This status can last a few minutes depending on the size of the batch of records. |
| Processing | The job is being processed. |
| Aborted | The job was aborted by a user. |
| Completed | The job completed with or without failure. |
| Failed | The job experienced a system failure. |

Batch Apex jobs can also have a status of `Holding` when held in the Apex flex queue. See [Monitoring the Apex Flex Queue](https://help.salesforce.com/s/articleView?id=platform.code_apex_flex_queue.htm&release=264.0.0&type=5 "Use the Apex Flex Queue page to view and reorder all batch jobs that have a status of Holding. Or reorder your batch jobs programmatically using Apex code.").

If one or more errors occur during batch processing, the Status Details column gives a short description of the first error. A more detailed description of that error, along with any subsequent errors, is emailed to the last user who modified the batch class.

On the Apex Jobs page, the number in the Total Batches column can be incorrect when a large batch job is processing. To see all Apex batch classes and an accurate count of batch jobs, click the link at the top of the page to go to the batch jobs page. Click **More Info** on a particular batch class to show the parent jobs of the batch class, including information about:

- Status
- Submitted and completion dates
- Elapsed time for each batch
- Number of processed batches
- Number of failed batches

To show a filtered list of items, select a predefined list from the View dropdown list, or click **Create New View** to define your own custom views. Filtered views are especially useful if you want to view only `future` methods.

Only one batch Apex job's `start` method can run at a time in an org. Batch jobs that haven't started yet remain in the queue until they're started. This limit doesn’t cause any batch job to fail and `execute` methods of batch Apex jobs still run in parallel if more than one job is running.

For any type of Apex job, you can click **Abort Job** in the Action column to stop all processing for that job.

All batch jobs that have completed execution are removed from the batch queue list seven days after completion.

For more information about Apex, see the [Lightning Platform Apex Code Developer's Guide](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/).

#### See Also

- [Schedule Apex Jobs](https://help.salesforce.com/s/articleView?id=platform.code_schedule_batch_apex.htm&release=264.0.0&type=5 "Use the Apex scheduler and the Schedulable interface if you have specific Apex classes that you want to run on a regular basis, or to run a batch Apex job using the Salesforce user interface.")