agronholm / apscheduler

Task scheduling library for Python
MIT License
6.18k stars 704 forks source link

fix: Configure task with `misfire_grace_time` in `add_schedule()` #908

Closed injust closed 4 months ago

injust commented 4 months ago

AsyncScheduler.add_schedule() accepts a misfire_grace_time parameter, but was not passing it to self.configure_task().

Fixes #863

injust commented 4 months ago

Seems like the Windows tests are broken. Failures aren't relevant to my change and also happen in other PRs.

agronholm commented 4 months ago

It's not supposed to be added to the task, but only the schedule. If one wants to have a default misfire_grace_time for the task, they can explicitly configure the task that way.