Skip to content

Update Huey task queue library #2731

@phillxnet

Description

@phillxnet

We have a number of usefull fixes from when we initially introduced (and pinned) Huey to 2.3.0. It is proposed that we update this pinning or adopt a major version only pin instead.
PyPi: https://pypi.org/project/huey/#history

Noteworthy additions from the upstream changelog: https://github.com/coleifer/huey/blob/master/CHANGELOG.md

  • 2.5.0 Fix bug in SIGINT and SIGTERM behavior for gevent users.
  • Add an on_commit_task() decorator for Django extension that will enqueue the task after any database changes have been committed. This eliminates a common race condition where a task is enqueued and executed before the corresponding database changes have been committed.
  • Check to ensure the gevent monkeypatch was applied when running the consumer with greenlet workers, log warning if it is not.
  • 2.4.1 Attempt to reconnect to database if connection becomes unusable (e.g. due to a server restart). See: huey.contrib.sql_huey.SqlHuey.
  • 2.4.0 Task expiration: https://huey.readthedocs.io/en/latest/guide.html#task-expiration - we have had reports of task ongoing indefinitely that may benefit here.

We also have a number of other bug-fixes, and Django enhancements in the interim releases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions