MCPcopy Index your code
hub / github.com/Flared/dramatiq-abort

github.com/Flared/dramatiq-abort @v1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.1 ↗ · + Follow
88 symbols 364 edges 16 files 16 documented · 18%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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)

Core symbols most depended-on inside this repo

Shape

Method 47
Function 29
Class 11
Route 1

Languages

Python100%

Modules by API surface

src/dramatiq_abort/abort_manager.py24 symbols
src/dramatiq_abort/middleware.py17 symbols
tests/test_abortable.py15 symbols
src/dramatiq_abort/backends/redis.py10 symbols
tests/conftest.py7 symbols
src/dramatiq_abort/backends/stub.py6 symbols
src/dramatiq_abort/backend.py5 symbols
tests/backends/test_redis.py2 symbols
tests/backends/test_backends.py1 symbols
setup.py1 symbols

For agents

$ claude mcp add dramatiq-abort \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page