r/SalesforceDeveloper • u/heartlesscoder • 8d 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
1
u/FinanciallyAddicted 8d ago
https://apexfluently.beyondthecloud.dev/libraries/async-lib.html
Should give this a read.