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
0 votes
1 answer
109 views

Record Trigger Flow Running Apex Job - Avoid Flex Queue Limit

We are using a managed package, Geopointe, to define regions and Assign Leads based on Assignment Plans. The Business is insisting that "warm" Leads (based on the Lead Source) be assigned ...
Jeff Callahan's user avatar
0 votes
1 answer
496 views

Why scheduled apex jobs in Queued Status?

In the Apex jobs screen, I am seeing a lot of jobs stuck in Queued status close to 120 jobs. Many of those jobs are aborted And some of them failed with errors Scheduler: failed to execute scheduled ...
Satishakumar Awati's user avatar
-3 votes
1 answer
2k views

Salesforce limit for concurrent calls of Async Apex

What is the limit of max concurrent calls for Batchable apex Queueable apex Future methods Need the Limit for both the scenarios 1. Limit for running the same batch (with different transactions), 2. ...
Sautul Mehta's user avatar
1 vote
1 answer
796 views

Asynchronous Apex and Queue

I would like to confirm the following points with regard to Asynchronous Apex and particularly to these 3 in particular - Future Methods, Batch Apex and Queueable Apex. When an async request is made, ...
user73893's user avatar
  • 305
1 vote
1 answer
2k 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 ...
SalesforceNewbie's user avatar
1 vote
1 answer
864 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 ...
Matthew Metros's user avatar
0 votes
1 answer
687 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 ...
Matthew Metros's user avatar
0 votes
1 answer
91 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 ...
Student's user avatar
  • 565
2 votes
3 answers
2k 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 ...
Student's user avatar
  • 565
2 votes
0 answers
4k 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 ...
Student's user avatar
  • 565
5 votes
2 answers
1k 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 ...
Robert Sösemann's user avatar
0 votes
1 answer
2k 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 ...
Sushma Ramakrishnan's user avatar
6 votes
2 answers
4k 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 ...
Paul Kissick's user avatar
7 votes
3 answers
442 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 ...
Robert Sösemann's user avatar
4 votes
1 answer
3k 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 ...
Keith C's user avatar
  • 134k
2 votes
0 answers
195 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 ...
Krishna's user avatar
  • 21
2 votes
3 answers
1k 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 ...
Yifei Pei's user avatar
8 votes
1 answer
7k views

Difference between Queues and Flex Queues

What is the diff between Queues and Flex Queues? Is it related to BatchJobs or Schedule Jobs?
Anurag Pareek's user avatar
2 votes
1 answer
4k 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 ...
sf_user's user avatar
  • 2,208
4 votes
1 answer
2k 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 ...
Pittsburgh DBA's user avatar
0 votes
1 answer
275 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 ...
sf guest's user avatar
3 votes
1 answer
272 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 ...
Nathan Williams's user avatar
2 votes
1 answer
74 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?
vikasgupta's user avatar
2 votes
1 answer
6k 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,...
SeanW's user avatar
  • 662
15 votes
1 answer
1k 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() ...
Daniel Ballinger's user avatar
4 votes
3 answers
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 ...
Ashvin Bhatt's user avatar
5 votes
1 answer
774 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 ...
daveespo's user avatar
  • 2,563