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
Vinnie BVinnie B 

Why does a Scheduled Job automatically become a Queued job?

I'm running into the limit of five queued, not scheduled, jobs.  I have one job that runs an Apex batch class once a month.  However, once it runs on say 4/1, it creates a scheduled job for 5/1.  Now one of my five is taken forever.  I have two other scheduled jobs that run weekly.  Now, I'm at 3 of 5.  We have installed Rollup Helper and TaskRay and now I'm at 6!

How can I code my scheduled job so that it doesn't permanently take up a queued job?  I find it odd that a monthly process should count for one fifth of my limit in this regard.

Note that my Apex code is running fine.

Thanks!
Mudasir WaniMudasir Wani

Hi Vinnie,

You cannot avoid this because it works this way only.
for the limits you can visit the link

https://developer.salesforce.com/forums/ForumsMain?id=906F000000090mbIAA
https://na10.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf

Mark it as solution if it solves your problem.