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

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.5.tar.gz
Algorithm Hash digest
SHA256 027973e43e2a8258ce92ae5500987a251fdff71aa16cbedc0b2abfe80cf4e154
MD5 1a9436788586aa69c301bf16bb59200e
BLAKE2b-256 6d3c7557ea0d039825a2dbcedb30aa419fe1ae68420d52d56747465687a82bfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_dramatiq_result_backend-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 789ff99547b0a55a8debca29388e770cb2bbb92667dd93b10f4b6e40eecb1963
MD5 52039f543eeadf6a00328ba8e012f2c9
BLAKE2b-256 acf0b4b45be9181fc3c5f4da42de117a6c9384f9880a498cafc3ebdf23b8e45d

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