A Django email backend using Dramatiq to send emails using background workers
Project description
Django Dramatiq Email
Email backend for Django sending emails via Dramatiq.
Installation
To enable django-dramatiq-email
configure the Django EMAIL_BACKEND
to django_dramatiq_email.backends.DramatiqEmailBackend
and make sure add Django Dramatiq Email to your Django INSTALLED_APPS
. This package is tested up to Django 3.
Configuration
The dramatiq task's configuration can be changed via the setting DRAMATIQ_EMAIL_TASK_CONFIG
of type dict.
By default tasks are being pushed to the 'django_email' queue. The settings in DRAMATIQ_EMAIL_TASK_CONFIG
are being used at load time to construct the actor.
Example configuration (using the Retry middleware):
DRAMATIQ_EMAIL_TASK_CONFIG = {
"max_retries": 20,
"min_backoff": 15000,
"max_backoff": 86400000,
"queue_name": "my_custom_queue"
}
You can change the actual email backend being used by changing DRAMATIQ_EMAIL_BACKEND
.
Bulk emails
Bulk emails are send using individual Dramatiq tasks. Doing so these tasks can be restarted individually.
Maintainer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-dramatiq-email-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 363c9bb027cd854cfb959c8f7b7a884e52f54e7094b0e1e3dbe728d29e271baf |
|
MD5 | 186dfc887e09bae40c281bb9a1f65f92 |
|
BLAKE2b-256 | c493e46c3d0010386b9d641c138faf04ff3cbf4a15b8c5f8e56735aea1c1cf73 |
Hashes for django_dramatiq_email-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eb9bfba75f7760a78fc96040097b56d3e7bcb7505cfe1be789b0ec5fbd22023 |
|
MD5 | 43715a31aa22330decb6ff404c2eaa7c |
|
BLAKE2b-256 | 5e4d00c01f71244e46984f9e97f6f821207336d68387a17483c4d6c76cc64791 |