+ Start a Discussion

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?









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.


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!