function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MJ Kahn / OpFocusMJ Kahn / OpFocus 

Limit on the number of scheduled jobs

The Apex Language Reference says the "Total number of classes that can be scheduled concurrently" is 25. 

 

The wording is a little difficult to parse. Which of the following (if any) does this mean?

 

  • I can have at most 25 Schedulable Apex jobs scheduled, even if they're scheduled to run at a wide variety of times that don't overlap
  • I can have at most 25 Schedulable Apex jobs actually running at any one point in time, 

Thanks!

 

Rakesh Aggarwal.ax1406Rakesh Aggarwal.ax1406

You can only have 25 classes scheduled and running 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.

MJ09MJ09

So you're saying I could have 20 scheduled jobs that run in the morning, and 20 more that run in the evening, and that's not a problem?

 

My question boils down to whether the limit is on the number of jobs that can be scheduled or on the number of scheduled jobs that can running at any one point in time.

 

Thanks.

Rakesh Aggarwal.ax1406Rakesh Aggarwal.ax1406

you can schedule upto 25 classes and those can run in parallel at a given time.