huey v1.4.0 Release Notes
-
๐ Fixed a subtle bug in the way Huey calculated when to run the periodic task โฑ scheduler. If you had configured the consumer to check the schedule at an interval that was not a factor of 60, then there is a chance that periodic โฑ tasks may be scheduled at incorrect intervals from one minute to the next. This ๐ is fixed in 1.4.0.
โ Added better signal handling in order to support graceful shutdown. Graceful ๐ท shutdown involves letting workers finish executing any tasks they may be ๐ฆ processing at the time the shutdown signal is received. The default behavior is ๐ท to interrupt the workers mid-task. Huey uses
SIGTERM
to shutdown the consumer immediately, andSIGINT
to gracefully shutdown.โ Added support for using either a global task registry, or a registry bound to 0๏ธโฃ a particular
Huey
instance. The default behavior is to use a global registry (backwards-compatible). To bind the registry to a singleHuey
instance, passglobal_registry=False
when initializing yourHuey
object.โ Added a
reschedule()
method to theTaskResultWrapper
.๐ Documentation clean-ups and additions, particularly around the logic used to ๐ handle datetime conversion. Also added docs on shutdown modes for huey consumer.