django-helpdesk/helpdesk/tasks.py
Timothy Hobbs e96f1559e7
Add celery task for get_email
Allows you to get_email even without cron, thus enabling the use of django-helpdesk of cronless PaaS services.
2018-11-08 14:39:37 +01:00

9 lines
118 B
Python

from celery import task
from .email import process_email
@task()
def helpdesk_process_email():
process_email()