You need to sign in to do that
Don't have an account?
Haystack Certified
Queueable class and governor limits
Do queued jobs using Queueable class get their own set of govenor limits? For example, the limit for DMLs is 150. If a trigger has 10 DMLs, does the queued job still have all 150 DMLs allowed?
Yes, every queued job using Queueable class has its own set of limits. This is because this is a separate transaction.
You can test that by creating a Queueable class for test purposes like this:
The result is:
21:00:14:006 USER_DEBUG [4]|DEBUG|DML Statements Limit: 150
21:00:14:006 USER_DEBUG [5]|DEBUG|DML Statements used: 0
Happy coding!
Best regards,
Martijn Schwärzer