Repository navigation
v0.0.1
🚀 Added
facade:BaseDramatiqFacade, the door to the tasks of an application. A subclass names the directory and the pattern of the task modules; the instance imports them, wraps every actor in the actor middlewares, sends a task by its name withsend_task(task_name, *args, delay=None, **kwargs), runs one in place withrun_task_syncand lists the actors marked with@cronfor a scheduler. Arguments pass through JSON on the way, so an actor gets what a real broker would deliver.actor_middlewares:BaseActorMiddleware, a layer around the coroutine of every actor, and three of them:LogPropertiesManagerMiddlewareenters the scope of the application's log properties registry for a run,SentryTagsMiddlewaretags the Sentry scope with them,TaskLoggingMiddlewarelogs the start, the result and the failure of a run with its scalar arguments.decorators:cron, the mark of a periodic actor.middlewares, for the broker:AsyncShutdownruns coroutines on the worker's event loop on shutdown, to close async clients;HealthCheckserves/livez,/readyzand/startupzfrom the pings of the worker processes, each of which checks its threads and its event loop;PrometheusMetricsaddsdramatiq_messages_enqueued_totalanddramatiq_message_queue_time_millisecondsto dramatiq's own metrics.
Python 3.11 to 3.15, dramatiq >= 2.0, < 2.3, sentry-sdk >= 2.12, < 4.
Full Changelog: https://github.com/davyddd/dddramatiq/commits/v0.0.1