Skip to main content

z4j Dramatiq queue engine adapter (Apache 2.0)

Project description

z4j-dramatiq

PyPI version Python License

License: Apache 2.0 Status: v1.0.0 - first public release alongside z4j-celery and z4j-rq.

The Dramatiq queue-engine adapter for z4j. Drop into any Dramatiq install (Redis OR RabbitMQ broker - both first-class on day 1) and z4j observes every actor your workers run via the canonical Dramatiq middleware chain - no monkey-patches, no subclassing, no host code changes.

Install

# Redis broker
pip install z4j[dramatiq] dramatiq[redis]
# OR RabbitMQ broker
pip install z4j[dramatiq] dramatiq[rabbitmq]

# Or just this package:
pip install z4j-dramatiq

What it ships on day 1

Capability Status Notes
Event capture (received / started / succeeded / failed) Z4JMiddleware in your broker chain - blessed observability hook
Discovery Walks broker.actors
retry Re-sends the actor's message
cancel ⚠️ Promoted into capabilities iff Abortable middleware is installed
purge_queue With confirm-token + Z4J_PURGE_THRESHOLD guard
Dual-broker (Redis + RabbitMQ) Both natively supported, both in CI

What it deliberately does NOT ship

Capability Why
bulk_retry Deferred to v1.1
requeue_dead_letter Deferred to v1.1 (Dramatiq has DeadLetter middleware)
rate_limit Deferred to v1.1 (Dramatiq has Throttler middleware)
restart_worker Dramatiq workers expose no remote-control channel - never
pool grow / shrink / consumer ops Dramatiq has no pool concept - never

The adapter advertises only what it implements via capabilities() - the dashboard hides every button it can't honor. The cancel button only appears if Abortable is in your middleware stack.

Scheduler pairing

Dramatiq has no built-in scheduler; use z4j-apscheduler to surface APScheduler-driven periodic / cron jobs on the Schedules page.

Documentation

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.3.0.tar.gz (33.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_dramatiq-1.3.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_dramatiq-1.3.0.tar.gz
  • Upload date:
  • Size: 33.7 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.3.0.tar.gz
Algorithm Hash digest
SHA256 708da0e301b989ff235e3dda4b7e8cae9c29cba2c39f1bc84ab63440c05fc627
MD5 e5886093ee42ca54dd1c90cf51012362
BLAKE2b-256 4d1a3a54ea8308aeda83bc11c8968518818f64d848cbfda224c5ccb8f0181cc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_dramatiq-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 29.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecbb4a4bc10fdca4becfd19b01e2539aabd6fd91effcd4f6f66d222d906348ad
MD5 d554519bd058d4bdd831dd8deca7364b
BLAKE2b-256 fcd9a3bca6297bcee7112b4a354de3bbec4ca306d0d56a00eee48d5c850378f0

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