Set priorities on tasks

This commit is contained in:
Mouse Reeve
2021-09-07 16:33:43 -07:00
parent 7b2e4eebd2
commit de3f18655c
10 changed files with 24 additions and 24 deletions

View File

@ -64,7 +64,7 @@ def format_email(email_name, data):
return (subject, html_content, text_content)
@app.task
@app.task(queue="high_priority")
def send_email(recipient, subject, html_content, text_content):
"""use a task to send the email"""
email = EmailMultiAlternatives(