apscheduler icon indicating copy to clipboard operation
apscheduler copied to clipboard

Paused jobs do not execute when resumed

Open parisosuch-dev opened this issue 1 year ago • 0 comments

Things to check first

  • [X] I have searched the existing issues and didn't find my feature already requested there

Feature description

When a paused job is resumed and it was suppose to be executed while it was paused, it will not execute that job when the job is resumed. I believe this has to do with the next_run_time being removed and calculated on the resuming of the job. It would be great if this feature worked more like the entire scheduler being paused. When the scheduler itself is resumed, any scheduled jobs that would have been ran since pausing are executed on the resuming of the scheduler.

LMK if you want help with this feature.

Use case

I am working on a project that pauses certain groups of jobs based on the state of the system. I want those jobs to begin executing after they are resumed if they were suppose to be executed since the pausing of those jobs.

parisosuch-dev avatar Jan 24 '24 17:01 parisosuch-dev