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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f312b533f8f30c058b35a7befbf37a5ee742de3f75bee55d1fd5bae4d90212 |
|
MD5 | f437562614e68abc14d58fb35bf4551b |
|
BLAKE2b-256 | 726351bf39f6d5c766869b0e6973f8a72b91ede5f1ed825cec0d6c45a9610c8d |
Hashes for django_dramatiq_email-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3eeb2f366692d9f2b8c2e7c3da5c78ea4803c1217093ba52a6e82086135e32d |
|
MD5 | 82b8b50b09cdece96635419957535616 |
|
BLAKE2b-256 | eebf1cd05028fba2a9ad3f39055dd593c1f8e0fa45093ee250814a2c686595ed |