Closed nrathaus closed 2 months ago
This sounds like your problem is with misfire_grace_time
not showing up in the logging output? I should mention that the fact that the task=
shows so many details is an oversight – it should just show the task ID.
While it might be an oversight that the data is shown, what isn't making sense is that the value is None while it was provided during the Scheduler setup
https://github.com/agronholm/apscheduler/pull/908#issuecomment-2106171049
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.
Which means everything is working as intended and there is no bug.
The log is showing the task's misfire_grace_time
(which is unset and is correctly logged as None
), not the scheduler's misfire_grace_time
(which is set, but isn't logged).
Ok, where is the wrong misfire_grace_time
logged?
Oh right, there's a provided MWE. Let me check.
Alright, I see where the confusion stems from. I should fix the logging to only log the task ID, not the entire Task
instance. So in a way, there was indeed a bug.
Things to check first
[X] I have checked that my issue does not already have a solution in the FAQ
[X] I have searched the existing issues and didn't find my bug already reported there
[X] I have checked that my bug is still present in the latest release
Version
4.0.0a4
What happened?
While running the below script you would expect the logging to provide indication that a
misfire_grace_time
is being passed, it shows it as not:How can we reproduce the bug?