Skip to main content

z4j Dramatiq queue engine adapter (Apache 2.0)

Project description

z4j-dramatiq

PyPI version Python License

The Dramatiq engine adapter for z4j.

Streams every Dramatiq actor lifecycle event from your workers to the z4j and accepts operator control actions from the dashboard. Dramatiq has no upstream scheduler, so for periodic schedules pair with z4j-scheduler.

Compatibility

  • Dramatiq 1.14+ and <3 (capped below the eventual Dramatiq 3 breaking-major)
  • Python 3.11+

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

What it ships

Capability Notes
Message lifecycle events enqueued, started, succeeded, failed
Actor discovery Dramatiq's runtime broker registry
Submit / retry / cancel direct against the Dramatiq broker
Bulk retry filter-driven; re-enqueues matching messages
Purge queue with confirm-token guard
Reconcile task reports honest unknown (Dramatiq has no queryable-by-id result store); the brain's event-derived state stays authoritative

Captured via Dramatiq's middleware hook system, your existing actors do not need to be decorated or modified.

Install

pip install z4j-dramatiq

Pair with a framework adapter:

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

For schedules, install z4j-scheduler as a separate process.

Reliability

  • No exception from the adapter ever propagates back into Dramatiq middleware or your actor code.
  • Events buffer locally when z4j is unreachable; workers never block on network I/O.

Documentation

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

License

Apache-2.0, see LICENSE.

Links

Project details


Download files

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

Source Distribution

z4j_dramatiq-1.7.0.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

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

z4j_dramatiq-1.7.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file z4j_dramatiq-1.7.0.tar.gz.

File metadata

  • Download URL: z4j_dramatiq-1.7.0.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_dramatiq-1.7.0.tar.gz
Algorithm Hash digest
SHA256 48229304bfb5b1966458fc578eb9b6e08e6ea8da906455178224d39b61140367
MD5 3acd2ca17a57092999f003709fb701b4
BLAKE2b-256 e9c56a3043f427e755cc5ff6878cac3a301a53e110021de8bcfce95bc31cec3e

See more details on using hashes here.

File details

Details for the file z4j_dramatiq-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: z4j_dramatiq-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_dramatiq-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75bffa1b049bc183dbc3d35affce56528b3cc7302976d368c75f5d5edb3c672d
MD5 7808122912a43153b5315399ba50cd52
BLAKE2b-256 5b5197151cf0ab0273806695089e90c0e64f76aca755b72fd18ef6852c84d5fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page