Activity Forums Salesforce® Discussions How can i schedule jobs in Salesforce Apex Flex Queue?

  • PRANAV

    Member
    January 18, 2018 at 3:02 pm

    Hi Suraj,

    The Apex Flex Queue page lists all batch jobs that are in Holding status. You can view information about the job, such as the job ID, submission date, and Apex class. By default, jobs are numbered in the order submitted, starting with position 1, which corresponds to the job that was submitted first.

    When the system selects the next job from the Apex flex queue for processing, the job is moved from the flex queue to the batch job queue. You can monitor the moved job in the Apex Jobs page by clicking Apex Jobs.

    Alternatively, you can use System.FlexQueue Apex methods to reorder batch jobs in the flex queue. To test the flex queue, use the getFlexQueueOrder() and enqueueBatchJobs(numberOfJobs) methods in the System.Test class.

    Hope this helps you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos