z4j-huey
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
z4j-hueyperiodic, schedule adapter for Huey@periodic_task
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
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-huey/
- Issues: https://github.com/z4jdev/z4j-huey/issues
- Changelog: CHANGELOG.md
- Security: security@z4j.com (see SECURITY.md)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file z4j_huey-1.10.0.tar.gz.
File metadata
- Download URL: z4j_huey-1.10.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aadc485106852e37f7af33b0f022863775f9a89197aa57752135bb5fcc4712c
|
|
| MD5 |
bd544c1e0a67291a5f5f889db1cafabb
|
|
| BLAKE2b-256 |
adb4bbb2060d2e6ca6ff2da935d466c8b268b169266a8b7fac40290c7a7612cf
|
File details
Details for the file z4j_huey-1.10.0-py3-none-any.whl.
File metadata
- Download URL: z4j_huey-1.10.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c11acd845a2e027191c125bf5b0463ef6b5ae5a7308a861b9008abad84d221c3
|
|
| MD5 |
02a0d5b89b73ffa59a27e6d340f0d30f
|
|
| BLAKE2b-256 |
3ef334f43cb911e0502018d5514af07f1be1ba47b1a2b8d3a901c542b29318e8
|