1

We are in the process of building ant scripts for our deployments. We have scheduled apex jobs which run every 3 minutes to process some functions and currently our deploy targets are failing because it is complaining of schedulable class has jobs running. We cannot stop these jobs to facilitate the deployment. What is the solution to get around this? Anybody has any thoughts on this Thanks Buyan

2

Dan Appleman's sessions at DF13 outlines a solution to that problem - you can view the session here

Basically, you use the type for interface to avoid the class you are invoking from the scheduled class from being serialized...

1
  • Thanks British Boy. You saved my day. Credit goes to Dan Appleman!!! – Buyan Thyagarajan Dec 12 '13 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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