| JobType | Description |
|---|---|
| Future | A 'Future' method represents an asynchronous apex method annotated as an @future method. Future methods are used to execute long-running operations such as callouts to external Web services or any operation requiring its own thread and to run in its own time |
| SharingRecalculation | A 'SharingRecalculation' job represents a Batch Apex class (class that implements Batchable interface via implements Database.Batchable) used to recalculate the Apex managed sharing for a specific custom object. A 'SharingRecalculation' can be associated with a custom object via the custom object detail page and initiated via 'Recalculate Apex Sharing' |
| ScheduledApex | A 'ScheduledApex' job represents an asynchronous Apex class using the Schedulable interface via implements Schedulable. Using Scheduled Apex allows for the invocation of Apex classes to run at specific times when resources are available |
| BatchApex | A 'BatchApex' job represents an asynchronous Apex class using the Batchable interface via implements Database.Batchable. Using Batch Apex allows for the asynchronous processing of a long running process on a large data volume by breaking the job into manageable chunks to be processed separately |
| BatchApexWorker | Used internally by Salesforce. For each 'AsyncApexJob' record of type 'BatchApex', Apex creates for internal use an 'AsyncApexJob' record of type 'BatchApexWorker' per 10,000 records to be processed. When querying for all 'AsyncApexJob' records, we recommend that you filter out records of type 'BatchApexWorker' using the 'JobType' field to avoid returning more than one record for each 'AsyncApexJob' record of type 'BatchApex.' |
| TestRequest | Every time Apex test(s) are run asynchronously from the UI or from Apex code, the system creates a parent 'AsyncApexJob' with 'JobType' set as 'TestRequest'. Customers can also execute a SOQL query to check the status of overall test request |
| TestWorker | A 'TestWorker' job is used only internally by Salesforce, and is not saved in the database |
| ApexToken | An 'ApexToken' job is used for Flex Queue enabled organizations. From Winter '16 onwards, the flex queue is enabled by default for all organizations. If an Apex code block invokes Database.executeBatch(),instead of accepting the job directly into Salesforce's queueing system, an 'ApexToken' Job is submitted to the queue. For any batch job that a user submits, a token job is created internally. However, if the maximum number of queued batch jobs in the batch job queue has been reached, the new batch job is placed in a 'Holding' state in the flex queue. 'ApexToken' is our internal mechanism for managing system resources. When a token job gets picked up by the system for execution, it's an indication that the system can take in more jobs from the flex queue. Note: Every organization has only limited number of 'ApexToken' jobs. This token mechanism allows organizations to submit more batch jobs (maximum is a 100), however only some of them could be running in parallel on the Salesforce platform. |
| Queueable | A 'Queueable' job represents an asynchronous Apex class using the Queueable interface via implements Queueable. Using the Queueable interface, allows users to manage and monitor asynchronous Apex jobs |
000387766

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.