[SalesForce] How to monitor the batch api usage and limits

Salesforce says:

Batch limit
You can submit up to 10,000 batches per rolling 24-hour period. You can’t create batches associated with a job that is more than 24 hours old.

How can I monitor my batch api usage and how close I'm getting to my 24hr limit? Can this be done through the user interface somewhere I'm not seeing?

Best Answer

As per the documentation the batch API usage limit is calculated as

The maximum number of asynchronous Apex method executions (batch Apex, future methods, Queueable Apex, and scheduled Apex) per a 24-hour period

The limit class does have getAsyncCallsLimit but looks like it is reserved for future and not yet implemented .

and the exact limits is as below

250,000 or the number of user licenses in your organization The maximum number of asynchronous Apex method executions (batch Apex, future methods, Queueable Apex, and scheduled Apex) per a 24-hour period1 multiplied by 200, whichever is greater

So this limit is not actually from the batch apex and instead a bulk API limit .

Your Apex might be using bulk API and bulk API can be monitored only via the Bulk API monitor page in the set up .

Related Topic