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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c4e751405978c39e47993736b3c7dfb9f1c66b264a1edf772589c78cf846c5 |
|
MD5 | 5093a84cd99d7122a1c7e9abae5b675e |
|
BLAKE2b-256 | 5693f3a782080251e0d03cb0e89d6207522fbe27b0f3cf560c57898d62f4e49e |
Hashes for django_dramatiq_email-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa1e25aeb962dcb262520b0199f08d68505ce02d165279fefb606f7d4f11b64 |
|
MD5 | 2da403f58fb4d7a0117873cfd199b65e |
|
BLAKE2b-256 | 25361c0eefe9287863179d6a8aad416efd76390281fd2e5afc0c351c4942f530 |