mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-03-12 05:59:39 +01: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…
Reference in New Issue
Block a user