-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global misfire_grace_time does not work #6
Comments
the problem still occurs |
Please elaborate. "Does not work" is not a good description. |
The parameter has no effect when passed to Scheduler.add_job, whereas seem to work fine if configured with configure() |
Please run the following script and tell me which value it prints: 3 (the scheduler default) or 4 (the per-job value): from apscheduler.schedulers.background import BackgroundScheduler
scheduler = BackgroundScheduler(misfire_grace_time=3)
scheduler.start()
job = scheduler.add_job(lambda: None, 'interval', seconds=60, misfire_grace_time=4)
print(job.misfire_grace_time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported by: Anonymous
The default misfire_grace_time value for a job is set 1 in Job.init():
So the following code in Schedule.add_job() does not work:
The text was updated successfully, but these errors were encountered: