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

Deployment and Scheduled Jobs: Is there are simple solution?

I'm exploring the possibility of moving some of our cron jobs (Java) into an Apex Schedulable class.  For the most part, I've been able to make this work.  However, I've noticed that if I continue development of the Schedulable class, I am not allowed to save or deploy it to my sandbox until I've deleted the scheduled job.  I'm using System.schedule() to schedule it in the 'Execute Anonymous' view in Eclipse.


This becomes a real problem because I recently adopted the Salesforce Ant Migration Tool to ease our deployment process.  Now, if we make lots of code changes, we can deploy all of our trigger and classes by just running our Ant script.  However, I fear this wont' be possible anymore if the Schedulable classes are scheduled in the target Salesforce instance.  Is there a way around this?  Is there something wrong with my deployment process?  I like to keep deployment a one-click operation so I really thought an Ant script was the way to go.


Any help is appreciated,