Skip to main content

z4j-huey

PyPI version Python License

The Huey engine adapter for z4j.

Streams supported Huey task lifecycle events from your consumers to the z4j brain and accepts operator control actions from the dashboard. Pair with z4j-hueyperiodic to surface @periodic_task schedules.

What it ships

Capability Notes
Task lifecycle events enqueued, started, succeeded, failed, retried, revoked
Task discovery Huey's in-process task registry
Submit direct against the Huey instance
Retry requires both complete operator-supplied replacement args and kwargs because Huey cannot recover the original signature by task id
Cancel prevents a pending task from starting; Huey cannot interrupt already-running work
Reconcile task probes Huey's result store; absence reports honest unknown

Not supported (Huey's storage model can't back them faithfully, so the adapter declines the capability instead of faking it): bulk retry, queue purge, dead-letter requeue, worker restart, rate limiting. Cancel uses Huey's revoke-by-id primitive. It prevents a pending task from starting but cannot stop running work.

Compatibility

  • Huey 2.4+ and <3 (capped below the Huey 3.0 breaking-major)
  • Storage backends: redis, sqlite, in-memory
  • Python 3.11+

Full per-adapter matrix at https://z4j.dev/reference/compatibility/.

Install

pip install z4j-huey z4j-hueyperiodic

Pair with a framework adapter:

pip install z4j-django  z4j-huey z4j-hueyperiodic   # Django
pip install z4j-flask   z4j-huey z4j-hueyperiodic   # Flask
pip install z4j-fastapi z4j-huey z4j-hueyperiodic   # FastAPI
pip install z4j-bare    z4j-huey z4j-hueyperiodic   # framework-free worker

Pairs with

Reliability

  • Lifecycle-capture failures are isolated from Huey hooks and task code; capture hooks make no brain network request inline.
  • The in-process event queue and SQLite outbound buffer are bounded. Queue overflow drops new events and buffer pressure evicts oldest rows; both losses are logged.

Documentation

Full docs at z4j.dev/engines/huey/.

License

Apache-2.0, see LICENSE.

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z4j_huey-1.9.1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z4j_huey-1.9.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file z4j_huey-1.9.1.tar.gz.

File metadata

  • Download URL: z4j_huey-1.9.1.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_huey-1.9.1.tar.gz
Algorithm Hash digest
SHA256 d2a94b0ab74f233d0d347f74fceffa1126102fbd190fb4dca57a30b129693213
MD5 e7749d7a10df11a4ec62576cd9485a37
BLAKE2b-256 1f1421c145f77f68e91f9cd69dc471a71bab5417b86b5e7c08adf5211f01dcdf

See more details on using hashes here.

File details

Details for the file z4j_huey-1.9.1-py3-none-any.whl.

File metadata

  • Download URL: z4j_huey-1.9.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_huey-1.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 649beb87f5600b97083524c20326818e820e8c94ee2b399bf8888af24cd78afd
MD5 fee3602504ff192e341ec551d2e7f77c
BLAKE2b-256 c349d56ad7f4f735573d34b7062b726893d6b6bd0045932db463416a371aec83

See more details on using hashes here.

Release history Release notifications | RSS feed

1.10.0

2 files

This release

1.9.1 This release

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.7

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.1.2

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page