Activity › Forums › Salesforce® Discussions › What are limits of batch class when we use Queueable Salesforce Apex?
Tagged: Asynchronous Apex, Batch Class, Limits, Maximum CPU Time, Queueable Apex, Salesforce Apex, Salesforce SOQL, System EnqueueJob
-
What are limits of batch class when we use Queueable Salesforce Apex?
Posted by Himanshu on April 30, 2016 at 4:48 PMWhat are limits of batch class when we use Queueable Salesforce Apex?
Avnish Yadav replied 7 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
Hi Himanshu,
Below are the limits of queueable apex:
- The execution of a queued job count as one against the shared limit for asynchronous Apex method executions.
- You can add up to 50 jobs to the queue with System.enqueueJob in a single transaction.
- No limit is enforced on the depth of chained jobs, which means that you can chain one job to another job and repeat this process.
Thanks
- [adinserter block='9']
-
Hello,
Queueable Interface methods and Future methods are Asynchronous Apex Processes that add jobs to the job queue and each job runs when system resources become available, so it doesn’t delay the execution of the main Apex logic. They also share a benefit of having some higher governor limits than synchronous Apex, such as heap size limits (12 MB), number of SOQL queries issued (200) and Maximum CPU time on the Salesforce servers (60k ms). But the Queueable interface methods are a step up from the future methods because they also come with these additional benefits (according to Salesforce release notes):
Thanks.
Log In to reply.