function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marina TrosMarina Tros 

Overcoming max queueable jobs limit

Hi, 
I have a managed package and I need the following basic functionallity to work:
Logging each exception in my Apex code to an external API. 
because it is a REST request - it should be done Asyncronyosly,
So my solution was creating a queueble that performs the callouts.

The problem is - soon enough I hit the Queueble limit of 2 because the job is enqueued from a trigger -  which is called from a future context I guess.

How can I call a queueable from different triggers without hitting this limit?

Or any other solution will be welcome. Can't figure out how to do it with all the execution governors and limits in Apex..
Christian Schwabe (x)Christian Schwabe (x)
See for a possible solution: https://www.jitendrazaa.com/blog/salesforce/framework-to-fix-governor-limit-of-100-jobs-in-flex-queue/