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
ScreamScream 

Please explain New Apex Batch restriction in Winter 12

The Winter 12 release notes, and this page (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm) describe a new "enhancement"

 

"A new restriction is now enforced on the start method of Batch Apex. Only one batch Apex job's start method can run at a time in an organization"

 

Can anybody explain what that actually means? It sounds like it means that there can only be one batch job active at a time, but the same page also says "Up to five queued or active batch jobs are allowed for Apex.", which seems like a contradiction.

 

Can anybody confirm?

 

Thanks

Kerry

 

 

 

 

__

It means only one start method can be executed at a time, after that up to 5 execute processes can be run... it other words if you have two jobs scheduled to run 5 minutes apart but the first one takes more than 5 minutes to run the start logic, your second job will fail.

ScreamScream

Thanks for taking the time to reply. Batch processing is pretty tough to use without fear that it will randomly blow up.

 

SF don't make life easy!