2

As I understand the further upgrade can fail if we try to update the class which already has scheduled job in the managed package, right?

1 Answer 1

3

Yes, That is right. You can avoid it by writing your logic on other classes and just call it from the scheduler class.

How to deploy apex classes that are scheduled

In older version scheduled classes and all other classes which are refereed in scheduled class were used to be lock. With new version now only scheduled classes are locked. So if you move your logic in other classes it should fix your problem.

2
  • 1
    @Natallia were you able to confirm this?
    – Phil B
    Commented Feb 8, 2016 at 16:15
  • well, I can't reproduce that. Maybe if any issue existed for 1GP, it was fixed for 2GP
    – Patlatus
    Commented Mar 31, 2023 at 14:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .