Linked Questions

5
votes
1answer
1k views

Unable to delete class due to scheduled job pending, but no scheduled jobs listed [duplicate]

I have classes which I cannot remove because they are in a scheduled job. When I go to Apex Jobs I should be able to see which job they are in, however I cannot find them. There is no Scheduled Apex ...
3
votes
1answer
2k views

apx class save error - schedulable class has jobs pending or in progress [duplicate]

I have a scheduled class which in turn calls a Database.executeBatch to start a batch class. I am trying to make some edits to batch class and I am receiving well known "schedulable class has jobs ...
0
votes
0answers
218 views

How can I delete a cronJobDetail the has no cronTrigger? [duplicate]

I have a schedule apex that when I try to start it I get the message System.AsyncException: The Apex job named "Case Rescore" is already scheduled for execution. When I query cronJobDetail I see ...
0
votes
0answers
68 views

Deployment error: Apex class has Batchable or Future jobs pending or in progress; Schedulable class has jobs pending or in progress [duplicate]

I'm getting this error when trying to deploy code using ANT to one for my sandboxes: "Apex class has Batchable or Future jobs pending or in progress; Schedulable class has jobs pending or in ...
35
votes
3answers
8k views

How to deploy apex classes that are scheduled

This is related to Is there any way to unschedule an apex scheduled job programmatically?. I noticed user320 mentioned there is a way to use Type.forName to decouple your classes from the scheduled ...
8
votes
2answers
4k views

Deleted scheduled jobs still appearing?

I have a legacy process that has created about 2000 scheduled jobs over 12 months. They are all appearing in the Scheduled Jobs list in the UI. However, when I query the CronTriggers object, I see ...
5
votes
2answers
4k views

Apex class has Batchable or Future jobs pending or in progress

I am deploying to production using the Ant migration tool. Every class is reporting the error: Apex class has Batchable or Future jobs pending or in progress Even classes such as StringUtils and such ...
2
votes
2answers
982 views

Can't delete blank class due to “This Schedulable class is in use.”

Note - Ghost Schedulable Classes Blocking Deployment and https://success.salesforce.com/issues_view?id=a1p30000000STwPAAW may be related, but I'm not sure Someone in our org made the poor decision to ...
2
votes
1answer
218 views

Save process blocked on Sandbox due to ghost scheduled job (which does not exist or is already aborted)

When I try to edit and save some classes on sandbox, I receive an error "Schedulable class has jobs pending or in progress". When I go to schedulable job list, I see empty list (no scheduled job). ...
0
votes
0answers
34 views

How to delete invisible scheduled sandbox jobs?

I refreshed a sandbox recently. Now I'm trying to deploy something in it. Several tests are failing with the following message: "Job X" is already scheduled for execution. The problem is that ...