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.3.tar.gz (3.7 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.3.tar.gz.

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cee4dcac10d5880f5dd81f7eb228c3b781a7d77d2bd01bfcfed8a018342263aa
MD5 2403affc6b748f42bb10e1d41d9a6a7f
BLAKE2b-256 6982e1495d6deabec89124172a4df70f100a0ebc4fb82848b117b8de7984a037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6b03d8cd697d702da98671a1de6fd7973abe472d30f384ca19c73317d3309c
MD5 47ffaa0cd9e664d771aa290ad9c69766
BLAKE2b-256 bc44fbc471e64305eab87007072e47f81f7735c5caf2d057d40158f5ac533d5d

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