Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

5
votes
2answers
188 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
337 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
698 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
263 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 ...
5
votes
1answer
1k 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
74 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
537 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 ...
5
votes
1answer
3k 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
186 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
137 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
2k 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,...
14
votes
1answer
645 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
1k 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
478 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 ...