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
VivoVivo 

Running a Plan Schedule That might need more than 100 scheduled jobs in the future

Hi,

 

For my app, I have a requirement to let users basically create a plan "schedule" that runs an apex class once every X hours for Y days. I am looking into schedulers right now and it seems like there is a limit of 100 on scheduled jobs. Most places say to make it so the scheduler class actually reschedules itself i.e. If it's once every 24 hours, then once it is run it reschedules itself again to run in another 24 hours. However, what happens if my users have created over 100 plan schedules? Doesn't this mean that there need to be more than 100 scheduled jobs, since each schedule has a job that reschedules itself?

 

What is the best approach to this? 

 

Thanks for any advice or help!

-Vivo