- You can add up to 50 jobs to the queue with System.enqueueJob in a single transaction. In asynchronous transactions (for example, from a batch Apex job), you can add only one job to the queue with System.enqueueJob. To check how many queueable jobs have been added in one transaction, call Limits.getQueueableJobs().
- When chaining jobs with System.enqueueJob, you can add only one job from an executing job. Only one child job can exist for each parent queueable job. Starting multiple child jobs from the same queueable job isn’t supported.
- System.LimitException: Too many queueable jobs added to the queue: 2
- Usually we get this error because we are queuing jobs either in
- For Loop
- Trigger that is running multiple times in single transaction.
- Multiple processes calling this job multiple times very frequently.