Changelog History
Page 4
-
v1.5.4 Changes
- Implemented atomic "set if not exists" for Redis and SQLite, which is used by the locking APIs.
-
v1.5.3 Changes
- Includes addition of
TaskLock
andHuey.lock_task()
helpers. - Extend
Huey
API to add method for creating the consumer.
- Includes addition of
-
v1.5.2 Changes
- โ Added support for gracefully restarting the consumer using SIGHUP.
- ๐ Fixed a bug where periodic tasks were not being given unique task IDs when executed by the consumer. Periodic tasks now receive a unique ID each time they are invoked.
-
v1.5.1 Changes
โ Added support for specifying a
retry
andretry_delay
on periodic tasks. Simply pass the desired values into theperiodic_task()
decorator after the validation function, as keyword arguments. -
v1.5.0 Changes
- ๐ Allow all instances of a task to be revoked/restored by adding the
revoke()
,restore()
andis_revoked()
methods to all decorated tasks (where previously they were only available on periodic tasks). - Periodic task instances now have a unique identifier.
- โ Added documentation on how to correctly use the Django consumer management
command with the
gevent
worker model. - ๐ฒ Logging will lazily resolve log messages.
- ๐ Bug was fixed that prevented the local (non-global) task registry from working as intended. This is now fixed.
- ๐ Docstrings added to the
BaseStorage
APIs.
Thanks to @mindojo-victor and @nachtmaar for help with some of the above items.
- ๐ Allow all instances of a task to be revoked/restored by adding the
-
v1.4.1 Changes
- Support using
7
to represent Sunday when doing day-of-week calculations in thecrontab
helper. - ๐ Fix bug #243, wherein Django interpreted boolean CLI arguments as having a boolean default value.
- Support using
-
v1.4.0 Changes
๐ 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.
-
v1.3.1 Changes
Smarter conversion between datetimes, so that huey will correctly interpret ๐ง naive or timezone-aware datetimes and properly convert to UTC when configured to do so. Previously, huey only operated on naive datetimes. Many thanks to @Antoine for this patch-set.
๐ Documentation clean-ups and additions.
-
v1.3.0 Changes
โ Adds flag to preserve result-store value in certain circumstances. Contains yet ๐ง more hacking at the consumer configuration options, specifically hard-coded ๐ defaults are removed from the option definitions.
๐ The
run_huey
management command was simplified as we are dropping support for ๐ older (officially unsupported) versions of Django.โ Added a
sqlitedb
contrib module that uses a local SQLite database instead of โฑ Redis for Queue persistence, task scheduling and result-storage. -
v1.2.3 Changes
Contains an attempt at fixing the django management command handling of the 0๏ธโฃ
default
option.