Questions tagged [queueable-apex]
The queueable-apex tag has no summary.
187 questions
1 vote
2 answers
56 views
System.AsyncException: Rate Limiting Exception: AsyncApexExecutions Limit exceeded
I’m hitting the daily limit of 250,000 asynchronous callouts (via @future methods) during a large data migration. Since our org is integrated with multiple third-party systems that only support single-...
0 votes
1 answer
46 views
Scheduled Apex Doesn't Read New Custom Metadata
I have a scheduled apex class that calls a queueable. This runs daily to retrieve data from an external API, transforms the data, and upserts sObjects. Some of that data transformation relies on ...
1 vote
0 answers
73 views
Platform Event Flow Triggered by Queueable Apex Runs as 'Automated Process User'
I've encountered a user context issue that I'm trying to debug. The process is designed to switch from a community user to a Special User to handle backend processing, but at a certain point, the ...
1 vote
0 answers
88 views
Disabling async chaining process with record flag: Custom Settings or Custom Metadata?
I'm rereading Dan Appleman's book "Advanced Apex Programming in Salesforce", and I stumbled on the following statement in the chapter about asynchronous processing: Queueable Apex code ...
2 votes
0 answers
92 views
Queueable class not consistently invoked in after update trigger — alternative via Flow doesn’t fully populate order
I have a trigger QuoteTrigger with a trigger handler. In the after update context, I collect a list of quotes (renewalQuotesToProcess) that meet a specific condition, and after the loop I call a ...
0 votes
3 answers
242 views
What is the best way to make API calls from a Batch Class
I have a custom object, Issue__c, with a Status__c field. I want to run a batch job every day at a specific time that retrieves the status from an external system and updates the Salesforce record. ...
0 votes
0 answers
50 views
Platform Event is not subscribed in the target org
I am publishing the platform event in one salesforce org to another org though HTTP callout. The target org is listening to the event for the first record. i.e. If the source org publish 5 records, ...
2 votes
1 answer
216 views
Individual callouts from queueable apex
I have the below code sample which is calling multiple callouts from queueable execute method. Is it ok if I'm using below approach? Process: after bulk insert of account records, I'm collecting all ...
0 votes
1 answer
155 views
Maximum stack depth has been reached when testing
I'm in rather desperate need of some advice in regards to testing chained asynchronous methods. However I write the test I can't seem to escape the 'Maximum stack depth' error. Any advice would be ...
0 votes
2 answers
2k views
Queueable queue size limits?
I understand that the flex queue allows for a maximum of 100 batchable jobs at a time. Is there a similar limit for Queueable jobs? I’m aware of the global asynchronous limit of 250,000 jobs (or the ...
1 vote
0 answers
351 views
Issue with Invocable Apex that calls a Queueable Class which calls an Integration Procedure
I have a (1) Flow that calls an (2) Invocable Apex which calls a (3) Queueable class, and that class passes data to an (4) Integration Procedure. The IP does stuff with the data, and I can't not use ...
2 votes
1 answer
175 views
Set the Maximum Depth of Chained Queueable Jobs not working?
This Set the Maximum Depth of Chained Queueable Jobs (Generally Available) is GA and documented to work in: Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, ...
2 votes
1 answer
1k views
Any clean way to delay the execution of a Queuable by 20 seconds in Apex code?
The System.enqueueJob allows a minimum delay (0–10 minutes) to be specified before the Queueable will execute: Integer delayInMinutes = 1; ID jobId = System.enqueueJob(new MyQueueableClass(), ...
0 votes
1 answer
45 views
APEX API Call after another API Call - uncommitted work pending
I am trying to create a trigger that will fetch info from DB and populate fields in SF. Problem is that I need to fetch first basic info and then with this info do another API call to fetch the rest. ...
0 votes
0 answers
90 views
SendGrid API Callout From Flow Using Apex
I have queuable class which has a function to send out mails via sendgrid using REST API. I have created invocable apex action which is getting called from flow and is calling that queuable class ...