Skip to main content

A Django-based result backend for Dramatiq.

Project description

Django Dramatiq Result Backend

A Django-based ResultBackend for Dramatiq.

Features

  • Store and retrieve task results using Django's ORM.
  • Automatically handle result expiration.

Installation

pip install django-dramatiq-result-backend

Usage

Configure Django

Add django_dramatiq_result_backend to your INSTALLED_APPS in settings.py.

Configure Dramatiq Result Backend

# settings.py

DRAMATIQ_RESULT_BACKEND = {
    "BACKEND": "django_dramatiq_result_backend.backends.DjangoDramatiqResultBackend",
    "OPTIONS": {
        "model": "django_dramatiq_result_backend.Result",
        "expiration": 30 * 60 * 60 * 24,  # 30 days
    },
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

django_dramatiq_result_backend-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file django_dramatiq_result_backend-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eeb24e03a101c80b5aee2468446b774b00b86bdb24a25d83731cb5768dd04398
MD5 750634c9b0d0b4ee806257706ecc687d
BLAKE2b-256 7ceffb871668f0d44439ff44fc203ad7a32049b5375c151e031490f4a98ca1a6

See more details on using hashes here.

File details

Details for the file django_dramatiq_result_backend-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 615d8a5c8317a2993a771465fbdf9fd4f49f0e3bee6316e57d4e8b2b170d94ed
MD5 1364af05c073822506f8135ee5ec77d2
BLAKE2b-256 99d9185b9ee7ed8aedb70750604d0ab1c316c9768ec29025643165a1624b43b9

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