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
Ken KoellnerKen Koellner 

"Schedulable class has jobs pending or in progress" on classes that aren't scheduled

I'm getting the "Schedulable class has jobs pending or in progress" error on about sixty classes in my deployment package.  Almost all, if not all of these are not scheduled.  I do have six scheduled jobs but they run other classes.  Also, I know many of the classes in my deployment aren't referred to by classes that are scheduled directly or indirectly.

 

Is SF now not letting you deploy any classes if you have jobs scheduled?

 

 

AmitSahuAmitSahu
Recently this issue is noticed frequently. Just make backup of all the schedule and delete all of them. Then save the class again.
nick1505nick1505

Hi Ken,

 

Can you try deploying only those classes which are not being scheduled and do not have any references with the scheduled classes.

If still it is giving the scheduled error then  you will need to unschedule all the scheduled classes deploy the changes and then again schedule the class. Possibly then it is an bug from salesforce ends in this case and unscheduling the class will be the work around for it.

 

Do let me know your results!