Scheduled job governor limit workaround

I am looking for a solution where I can schedule more than 5 jobs (Running/Queued) at a time. but there is a governor limit that, we can have only up to 5 jobs that can be in Running/Queued status at a time.

Can anybody, help me with a workaround to set up a 6th job in Apex scheduler in Salesforce.

Answer

We can have 100 scheduled Apex jobs at one time.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

Things to consider:

  1. Scheduled APEX are like Planes. They can be on-time or little late depending on Queue.
  2. Scheduled Jobs execute as Synchronous Jobs, meaning it would get limits which are respective to Synchronous Jobs(6MB heap size for Synchronous Job or 12 MB heap size for Asynchronous Job).

Attribution
Source : Link , Question Author : nvr , Answer Author : Jag

Leave a Comment