Update tasks.py

Following https://docs.celeryproject.org/en/stable/internals/deprecation.html the importing of the celery task decorator needs to be updated for use with the current version of the celery package.
This commit is contained in:
Gibbs Consulting 2021-11-12 11:56:22 -08:00 committed by GitHub
parent 91b37f6d73
commit fedcca42ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
from celery.decorators import task
from celery import shared_task
from .email import process_email
@task()
@shared_task
def helpdesk_process_email():
process_email()