4

Since turning on the flex queue, I am seeing batch jobs that previously executed near-instantly now sitting in the "Holding" status for a very long time. It appears that only one job per hour (on the half hour) is executed; jobs submitted outside of that time frame sit in "Holding" for up to an hour!

I can click the "Run" link on the Holding job in the Apex Jobs view and the job gets submitted and processed fairly quickly.

Possibly relevant: these jobs are submitted from a scheduled job. There are a maximum of 2 jobs submitted at any time; usually there is just one submitted job but it sits in "Holding" for a long time.

Is there an easy way to fix this behavior to get jobs running smoothly and frequently again? Will switching to the Queueable interface improve the situation?

  • We have a similar setup in production, and ours never hangs. Maybe you need to have salesforce take a look for phantom jobs that might be causing issues. – sfdcfox May 15 '15 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.