mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-10 19:56:38 +02:00
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:
parent
91b37f6d73
commit
fedcca42ad
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user