Skip to main content

dramatiq-abort

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

Current version support aborting using the Redis store.

Build Status PyPI version Documentation

Installation

Since the only available backend right now is Redis:

pip install dramatiq_abort[redis]

Documentation: http://flared.github.io/dramatiq-abort

Quickstart

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

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

# ...

import dramatiq

@dramatiq.actor
def my_long_running_task(): ...

message = my_long_running_task.send()

# Now abort the message.
abort(message.message_id)

Metadata

Release files for dramatiq-abort 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dramatiq-abort 1.2.1
File Size Uploaded Provenance Actions
dramatiq_abort-1.2.1.tar.gz 15.7 kB Without provenance Details for dramatiq_abort-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dramatiq-abort 1.2.1
File Interpreter ABI Platform Actions
dramatiq_abort-1.2.1-py3-none-any.whl Python 3 none any Details for dramatiq_abort-1.2.1-py3-none-any.whl

Total release size: 28.5 kB

Release files / dramatiq_abort-1.2.1.tar.gz

Download URL dramatiq_abort-1.2.1.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
795ee9a37d884d70e63b758031017cd1f7c33f40db5f4901aaa95fcb659c13c0
BLAKE2b-256 checksum
How to use checksums
bcc764363acb81ea0df7e230efc1e04daf34c6e26ce59d0fd3bafff39b558c73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / dramatiq_abort-1.2.1-py3-none-any.whl

Download URL dramatiq_abort-1.2.1-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d025e358875b437346cc2f665525735b1a079ce7dcac9c3dc70853fa798efd69
BLAKE2b-256 checksum
How to use checksums
5d7c44815003095e842cc2917cdbc6b690603f984903559a26bffc23682fa0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Security for dramatiq-abort 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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