We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [queueable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Does mass updating contact records has any effect on Flex queues or Queues

I have a requirement where I have to schedule a job daily to update records on the Contact object in batches via API(about 30,000 a day). Would that impact the Flex queue or Queues by any chance? Just ...
1
vote
1answer
35 views

Mock test for callouts in a queuable function

I am having issue creating mock for callouts in a queue. I have done following.  I have a handler (OpportunityTriggerHandler) which creates a job called EnableOnboardingCompleteJob. This job calls a ...
0
votes
3answers
522 views

System.AsyncException: Maximum stack depth has been reached. while writing in test class

I've got a requirement to perform queueable apex in a trigger my class working fine, but while writing a test class for queueable apex I'm getting an exception. Could anybody can help me. Trigger ...
0
votes
1answer
74 views

Testing Queueable Class 55% now

I'm trying to test a Queueable class and I'm getting 55% only.. I tried several things but I'm still getting only 55%. This is the class: public class SherlockQueueablePolling implements Queueable, ...
5
votes
2answers
371 views

Automated testing of chained Queueable jobs in Salesforce

I am currently writing a queueable class for asynchronous processing in my triggers since triggers do not allow callouts. I am going achieve it by calling a class which implements the queueable ...
0
votes
0answers
139 views

Run Queueable as sequence

Good day Everyone, I have a trigger that will call a Queueable. The process looks like this : Trigger : for(User userData : Trigger.new) { if(Limits.getLimitQueueableJobs() - Limits.getQueueableJobs(...
0
votes
1answer
884 views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 200 records - Error even after using FOR UPDATE

I have a trigger and I am calling a queueable job from trigger. Sometimes I get this error: Update failed. First exception on row 0 with id a0VN00*********; first error: UNABLE_TO_LOCK_ROW, ...
4
votes
2answers
63 views

How to ensure all Leads are processed in batch job before firing off next step?

We're using Omni-Channel to route leads to specialists, and have a requirement that certain leads come before others. In this case, we're relying on a custom field that is, in essence, a priority ...
7
votes
2answers
126 views

Generating quote PDF in the same context the quote is created (I found a dwarf)

When attempting to create a quote and then generate a PDF using the quote in the same context, I get one of the dwarf errors: Line: -1, Column: -1 ORA-20001: ORA-06512: at "HAPPY.CACCESS", line ...
1
vote
1answer
114 views

If tests are failing w/ 'Internal Salesforce Error' in Summer '18, what will happen to deployed version when Production upgrades? [closed]

I've been building out queueable processes in our Sandbox on Summer '18, and I was able to deploy some of the functionality last week to Production (Spring '18), and now those tests in Sandbox are ...
0
votes
1answer
81 views

Creating queueable classes for trigger-like processing, hitting a 'de-reference' glitch

I have two queueable classes for handing off trigger-like processing; one Case-specific, one generic. The first implementation of the generic version also involves Cases, and editing a Case works in ...
3
votes
2answers
1k views

Queueable - Callout not allowed from this future method

I am using a queueable class to handle various date ranges that are then sent to a web service. Upon calling the queueable class I am receiving the following error: Callout not allowed from this ...
6
votes
4answers
884 views

Parallel callouts in apex

On some user action, I am calling several different third party services in order to update data in salesforce. As these callouts are time consuming, I would like to execute them in parallel, and when ...
0
votes
1answer
131 views

Salesforce-Execute method of the queuable apex is not running

I have written the following queuable class : public class LeadTriggerQueueable implements Queueable{ list<Rejected_Hold_List__c> lstRejectedLead = new list<Rejected_Hold_List__c>(); ...
1
vote
2answers
200 views

Using Unit of Work pattern in Queueable Context

I'm trying to implement Andy in the Cloud's Unit of Work pattern within a queueable class so that I can handle the DML for the Milestones that I'm inserting & relating to the Projects, which are ...
10
votes
1answer
1k views

Chaining Queueables: Clarification & Practical Usage

I am trying to understand what I can and can't do when chaining queueables. I have read several tutorials on this but it seems contradictory that I can't create more than 1 child job, but I can create ...
1
vote
1answer
182 views

Callout and chain Queueable - Spring 17

In Spring 17, I saw in the release notes (https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_apex_chaining.htm?edition=&impact=) that we can now chain Queueable Jobs that ...