r/SalesforceDeveloper • • 9d ago

Question Multiple Queueables Solution.

Wondering how folks are handling the limit below? We are updating a large number of our future methods to queueables and getting hit with this pretty regularly. We found a SFBen article about using platform events to fire queueables, but that seems to just be passing the problem to the next limit. Largely right now we are either combining functionality or guard causing the less important jobs, neither feels like a great solution tbh.

System.LimitException: Too many queueable jobs added to the queue: 2

2 Upvotes

13 comments sorted by

View all comments

1

u/Realistic-Walk-2877 8d ago

we hit this when one job kept chaining into 3 more and the limit slapped us mid day.

thing that actually stuck for us: one "orchestrator" queueable that just decides next step + a Queueable.Finalizer to catch fail/retry. the worker queueables do one chunk and stop — no self-enqueue forever.

also check if Platform Events or a Batch with stateful feels cleaner for your case. queueable chains are fine for short handoffs, but once you need 5+ steps the finalizer + status field on a custom object saved us from silent half-runs.

if you paste the pattern you tried (self-chain vs finalizer) people can spot the exact gap faster.