Activity Forums Salesforce® Discussions How to set time limit between queued jobs in Salesforce?

  • Kumar

    Member
    January 30, 2017 at 7:37 am

    Hi Sushant,

    You will have to use a helper class which implements schedulable interface to enque queueables like what you have at whatever interval you want to configure using the chron trigger object.

    Refer to this post for a detailed solution.

    Hope this helps.

  • Avnish Yadav

    Member
    September 30, 2018 at 4:46 am

    Hello,

    The scheduler documentation in the apex developers guide states:

     

    You can only have 25 classes scheduled at one time. You can evaluate your current count by viewing the Scheduled Jobs page in Salesforce or programmatically using the Force.com Web services API to query the CronTrigger object.
    while the batch apex states:

    Up to five queued or active batch jobs are allowed for Apex.

    So I'd say that they are independent, although the scheduled job starts batch apex or vice versa it will impact both.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos