Set priorities on tasks
This commit is contained in:
parent
7b2e4eebd2
commit
de3f18655c
10 changed files with 24 additions and 24 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue