From fedcca42adb7385e9c0f7d9cf7e3f0ca82607e46 Mon Sep 17 00:00:00 2001 From: Gibbs Consulting <34248703+GibbsConsulting@users.noreply.github.com> Date: Fri, 12 Nov 2021 11:56:22 -0800 Subject: [PATCH] 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. --- helpdesk/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpdesk/tasks.py b/helpdesk/tasks.py index cd3346fd..2fdee3e4 100644 --- a/helpdesk/tasks.py +++ b/helpdesk/tasks.py @@ -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()