Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [apex-flex-queue]

Use Apex Flex Queue to submit batch jobs. The flex queue holds batch jobs that haven't executed yet and lets you reorder those jobs to control which jobs are processed first.

Filter by
Sorted by
Tagged with
1
vote
1answer
39 views

Executing Batch Class In For Loop - Flex Queue Limit?

We have a requirement of operating on data in present in different objects. The total record count (of all objects) ~ 50 millions (some objects holding ~20 millions records alone). So we have ...
0
votes
0answers
30 views

Checking no. of concurrent queued or active batch jobs vs. Checking no. of holding batch jobs in the flex queue

So Salesforce has one limit for the no. of concurrent queued or active batch jobs and a second one for the no. of holding batch jobs in the flex queue. If my understanding is correct, currently, all ...
0
votes
1answer
40 views

Using Queueable Apex to avoid limit of 100 jobs in the flex queue

I am receiving the following error for some of my batches every here and there: You've exceeded the limit of 100 jobs in the flex queue for org 00D6A000000vKLe. Wait for some of your batch jobs to ...
0
votes
1answer
31 views

How to pause code until their is more space in the Flex queue

I am receiving the following error for some of my batches every here and there: You've exceeded the limit of 100 jobs in the flex queue for org 00D6A000000vKLe. Wait for some of your batch jobs to ...
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
2answers
74 views

Does queueable interface/class use Flex queues

I have tried to find its answer on multiple places but unable to do so, I know Batch classes use Flex queues and Batch queues. Just wondering what does queueable interface or class use? Does it also ...
1
vote
0answers
31 views

Solution to stop getting “You've exceeded the limit of 100 jobs in the flex queue” for the batch class [closed]

I am sending records in batches to a batch class. Code: BatchClass myBatchObject = new BatchClass(Trigger.new); Id batchId = Database.executeBatch(myBatchObject); I am getting the flex queue limit ...
5
votes
2answers
221 views

Enforce Batches (whole run, not single jobs) to wait for each other

A few situations in my app trigger a Clean up batch to run. It will process many records. In some situations multiple of such Cleanup batches will be triggered by independent user operations. If the ...
0
votes
1answer
622 views

System.AsyncException You have exceeded the limit of 100 Jobs in the flex queue

While creating a Lead or while Editing an Account most of the users are getting the below Error message : Also, As mentioned in the below links to contact Salesforce Support , but we couldnt contact ...
5
votes
2answers
1k views

New Apex Batch Jobs always end up in the flex queue in holding

I've noticed some strange behaviour in an org which I've not seen before regarding Apex Jobs. It seems all batch jobs, which are started by a scheduled apex job, never run straight away and are ...
7
votes
3answers
289 views

Reduce the risk of my Queueables to harm other async jobs

I know a specific org can enqueue up to 250,000 async jobs per 24h period in an org. My app uses a few Queueable jobs on nearly every user transaction to send Usage Metrics to another server so this ...
4
votes
1answer
2k views

How to check to avoid “System.AsyncException: You've exceeded the limit of 100 jobs in the flex queue”

We have an org that has hit: System.AsyncException: You've exceeded the limit of 100 jobs in the flex queue and are considering how to avoid that. (As this queue is a shared resource just ...
2
votes
0answers
90 views

FLexQueue - Job Id not recognized

I am following exactly the example of FlexQueue class, although there is a small syntax problem in the example, with an extra ). The problem I have, is that the jobId returned from System.EnqueueJob ...
2
votes
3answers
607 views

Both Apex Flex Queue and Scheduled Jobs used up

The system has batch call out APEX classes to sync Salesforce information with another Email sending provider, Active Campaign. Every time we insert or update a custom lead or custom opportunity, the ...
6
votes
1answer
4k views

Difference between Queues and Flex Queues

What is the diff between Queues and Flex Queues? Is it related to BatchJobs or Schedule Jobs?
1
vote
1answer
3k views

Loading 1 million records using bulk API: Exceeding batch Limit

Whenever records are inserted in Contacts(usually inserted in 1000's), we have a batch job that checks related customer account in SFDC and populates the contact.accountId field and couple other ...
2
votes
1answer
1k views

What happens to a Scheduled Job if the Apex Flex Queue is full?

Given that the limit on the Apex Flex Queue is 100, what happens when it is time for the system to execute a Scheduled Job (of a Database.Batchable), but the Apex Flex Queue is maxed out at 100? Is ...
0
votes
1answer
216 views

How to chain these 2 jobs with flex queue

I am trying to setup these 2 things. I am an Apex newbie so it might be obvious to an experienced developer. 1 below creates an attachment in an opportunity record. Only after it is done I need #2 to ...
3
votes
1answer
143 views

Issues with Batch Queuing?

Has anyone else run into issues where their concurrent batches don't really run concurrently? Supposedly there is a limit of 5 and beyond that goes to the Flex Queue, but I consistently only have a ...
2
votes
1answer
66 views

Apex method in Apex job and Apex Flex Queue Monitor screen

I went through release notes and reference books but didn't find anything about this "Apex Method". Has any one idea how to get value in Apex Method?
1
vote
1answer
3k views

explain salesforce FlexQueue limit?

related to: https://developer.salesforce.com/releases/release/Spring15/FlexQueue and https://help.salesforce.com/apex/HTViewHelpDoc?id=code_apex_flex_queue.htm&language=en_US In both linked pages,...
15
votes
1answer
696 views

Detect if Apex Flex Queue is enabled in an Org

I have a managed package that starts a batch job. Right now, before attempting to start the batch it does a check like: integer batchJobLimit = 5; integer currentBatchCount = [SELECT count() ...
4
votes
3answers
2k views

Apex Flex Queue jobs monitoring

I've enabled critical update for apex flex queue in my developer org. Also scheduled more than 20 jobs. Now, I wanted to monitor the jobs but when I go to Monitor -> Jobs there is no option as Apex ...
5
votes
1answer
536 views

API/Apex for modifying Batch Apex Flex Queue

UPDATE: Winter '16 made huge improvements since I wrote this question after Spring '15. Most notably, the various methods on the FlexQueue object (and related methods on Test object) My question as ...