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, and SIGINT 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 single Huey instance, pass global_registry=False when initializing your Huey object.

    โž• Added a reschedule() method to the TaskResultWrapper.

    ๐Ÿ“š Documentation clean-ups and additions, particularly around the logic used to ๐Ÿ“„ handle datetime conversion. Also added docs on shutdown modes for huey consumer.

    View commits