You need to sign in to do that
Don't have an account?
Marina 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..
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)
See for a possible solution: https://www.jitendrazaa.com/blog/salesforce/framework-to-fix-governor-limit-of-100-jobs-in-flex-queue/