huey v2.0.0 Release Notes
Release Date: 2019-04-02 // about 5 years ago-
๐ This section describes the changes in the 2.0.0 release. A detailed list of
๐ changes can be found here: https://huey.readthedocs.io/en/latest/changes.htmlOverview of changes:
always_eager
mode has been renamed toimmediate
mode. Unlike previous
๐ versions,immediate
mode involves the same code paths used by the consumer
โ process. This makes it easier to test features like task revocation and task
โฑ scheduling without needing to run a dedicated consumer process. Immediate
๐ง mode uses an in-memory storage layer by default, but can be configured to use
"live" storage like Redis or Sqlite.- ๐ The events stream API has been removed in favor of simpler callback-driven
๐ฆ signals APIs. These
๐ callbacks are executed synchronously within the huey consumer process. - A new serialization format is used in 2.0.0, however consumers running 2.0
will continue to be able to read and deserialize messages enqueued by Huey
๐ version 1.11.0 for backwards compatibility. - ๐ Support for task priorities.
- ๐ New
Serializer
abstraction allows users to customize the serialization
format used when reading and writing tasks. - โฑ Huey consumer and scheduler can be more easily run within the application
๐จ process, if you prefer not to run a separate consumer process. - Tasks can now specify an
on_error
handler, in addition to the
๐ previously-supportedon_complete
handler. - Task pipelines return a special
ResultGroup
object which simplifies reading
the results of a sequence of task executions. SqliteHuey
has been promoted out ofcontrib
, onto an equal footing with
๐RedisHuey
. To simplify deployment, the dependency on
๐ peewee was removed and the Sqlite
storage engine uses the Pythonsqlite3
driver directly.