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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb8aadcc0a8a55a43e0443d1149286aa6f26b4c551995a80e4dd3805d3dcffe |
|
MD5 | 920241e59bc955f2240616a3f005406a |
|
BLAKE2b-256 | 1cd0ef20f6c4ee8307e41d2cd59b98cfee558f5fe2db578bb7aa44e91777ce68 |
Hashes for django_dramatiq_email-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb8ee0b1edc2fbfaec3b40d638440bfd49fc1f32fb18b562a5d7c1cc1f68bf5 |
|
MD5 | fb11dc8cea93a70235c66dd365149e12 |
|
BLAKE2b-256 | 7af4f493e0299492c9be76206f6c2cd2fc80507149fa7208ebdb95ba38e87bad |