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.4.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.4.tar.gz.

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d178c7242ca9283d941e1555f4de8d2593381b87c3a090a1db9ac0f30eff5952
MD5 5130f324efe43f1d0a2f38775f516890
BLAKE2b-256 3f206513ef4e25058a96ddbe8b088947c67d26000cf4822a66a8328fa6d957ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2a7a590bb266e9673b52251f81a98d72f845a72d9c1c7dce8ce568b6a8f4e091
MD5 f5ac16f38ac8ebfc6ff885b4cb72b565
BLAKE2b-256 a4229a1e95fa9405f1a8c3937b4f034da199306f1178d700789a8461d6e5fd8b

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