Skip to main content

z4j-dramatiq

PyPI version Python License

The Dramatiq engine adapter for z4j.

Streams supported Dramatiq actor lifecycle events 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 received, started, succeeded, retried, failed
Actor discovery Dramatiq's runtime broker registry
Submit direct against the Dramatiq broker
Retry only with complete operator-supplied replacement args and kwargs
Cancel pending task requires z4j-dramatiq[abort] and Abortable middleware; does not interrupt running work
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

Bulk retry and dead-letter replay are not advertised because stock Dramatiq does not expose recoverable completed-message or dead-letter APIs. Pending-task cancel is advertised only when the external dramatiq-abort Abortable middleware is installed. z4j uses its pending-only mode because interrupting a running task can interact with Dramatiq retries and enqueue another attempt.

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

  • Lifecycle-capture failures are isolated from Dramatiq middleware and actor 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/dramatiq/.

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_dramatiq-1.9.0.tar.gz (39.9 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.9.0-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_dramatiq-1.9.0.tar.gz
Algorithm Hash digest
SHA256 6dc2c1fb24b1d1b3b8ff59e0b1b908140d7b1f3b55d24c32805c13bdc2fbf24a
MD5 a1bf8fc52dc66ae54e909997d839f4d3
BLAKE2b-256 93de8dc36fd46808803733e4294602b0d4b614485f669ca43bc58d523bbee473

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_dramatiq-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a65d0abc4d4a78869c8d13f0126b350c80feea29ac373082dd247925e3cfa011
MD5 0a079d496c660914e098306f33d2d367
BLAKE2b-256 8be0ddf45063edf433471c4652c284e11b75b166e53c83f2a834f90fcfb77271

See more details on using hashes here.

Release history Release notifications | RSS feed

1.10.0

2 files

1.9.1

2 files

This release

1.9.0 This release

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.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