Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Recently I've been running into issues where deployments were blocked due to a Schedulable job pending or in progress when I'd already cleared the Schedulable job from that class.

Any tips for resolving this issue? I've had success in the past by querying all CronTrigger objects and aborting the jobs that don't have a status of 'Deleted', but that has the unwanted side effect of cancelling all Dashboard Refreshes as well. I'm sure there is just a stuck job in there somewhere, but was curious if any of you code heads out there had other ideas ...

share|improve this question

1 Answer 1

up vote 9 down vote accepted

Has it something to do with this 'Known Issue'? http://success.salesforce.com/issues_view?id=a1p30000000STwPAAW

Update

While this is marked as fixed this issue still continues to come up from time to time. Fortunately Salesforce support can run a quick fix to address. Contact them and ask to run "fix for locked scheduled class" and include the deployment error message.

share|improve this answer
    
that would be it, thanks jason, how i love known issues –  Ralph Sep 24 '12 at 7:07
    
Worth noting...I was able to edit the code following the workaround; however, I am not able to actually delete the class...still get the phantom Scheduled Jobs. –  Peter Knolle Sep 24 '12 at 19:43
    
Fyi, even though this issue has marked as resolved for some of my orgs I'm still getting this error message for ANT/Eclipse based deployments. Change sets work as expected. –  Ralph Sep 30 '12 at 19:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.