Skip to main content

Dramatiq middleware to abort tasks.

Project description


Add the aborting feature to dramatiq through a simple middleware with flexible backend.

Current version support aborting using the Redis store.


Since the only available backend right now is Redis:

pip install dramatiq_abort[redis]


from dramatiq import get_broker
from dramatiq_abort import Abortable, backends, abort

abortable = Abortable(backend=backends.RedisBackend())

# ...

import dramatiq
def my_long_running_task(): ...

message = my_long_running_task.send()

# Now abort the message.

Project details

Download files

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

Files for dramatiq-abort, version 0.1b0
Filename, size File type Python version Upload date Hashes
Filename, size dramatiq_abort-0.1b0-py3-none-any.whl (8.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dramatiq-abort-0.1b0.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page