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.2.tar.gz (4.6 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.2.tar.gz.

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ed3e2b70dcd610cb69b426da37905020b9c119cfd619f03587b37502d61c58f0
MD5 5147394c0924b91276546bfdad50e780
BLAKE2b-256 b862e6ea09f61870522fb9748dae6d79ccf37bec742234db1dbe811585b8b77e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07b832d8d012031a455d3f55855818f34b25a13232d379c5d23512795f73130d
MD5 9e6fe0ccd6fd3a48b49cb3efa344035d
BLAKE2b-256 0ec38a0dd37aa964d7171e3b0e9a8c7a747c65718020dcb2ac5a2ce222fc5c85

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