Chaining Queueable Apex Limitations in Salesforce

What are the limits to Chaining Queueable Apex?

What are the main limitations of Chaining Queueable Apex in Salesforce?

Answer:

The Chaining Queueable Apex in Salesforce has three main limitations: maximum of 5 jobs in the queueable job chain, only one job can be queued in batch Apex methods, and the cumulative execution time is limited to 60 seconds.

The Chaining Queueable Apex in Salesforce allows you to run jobs asynchronously but it does come with certain limitations. Firstly, you are limited to chaining up to 5 Queueable jobs in a single execution context. Secondly, when queueing a job from a batch Apex start, execute, or finish method, you can only queue one job. Thirdly, there is a limit to the cumulative asynchronous Apex method execution time which is 60 seconds and any operations that exceed this limit will fail.

  • The maximum number of jobs in the queueable job chain is 5.
  • Only one job can be queued in a batch Apex start, execute, or finish method.
  • The cumulative asynchronous Apex method execution time is limited to 60 seconds.
← The importance of radial centering in split ball bore gauge Calculating machining time for ultrasonic machining process →