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.0.1.tar.gz (30.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.0.1-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_dramatiq-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b40f39d5ccb0057968ca67956ba2b1549eb0e0640ceaa12bacc878af0288f6e8
MD5 b0ee703df6a152050a824d734b8f4cf1
BLAKE2b-256 7a2ff97e5b084a98965c83117eb02aa52004596a353839e286a8884778982c51

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_dramatiq-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35ff4fe316c90c055b321f17463e870295b9327f9c885907a59d8b56f22c879c
MD5 dd473e75e384e63065d5299370405314
BLAKE2b-256 e493da60b0f79677c89cfc7540b7091cdbb9604993418a45a94e8168e522c356

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