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.
This commit is contained in:
Timothy Hobbs
2018-11-07 15:01:41 +01:00
parent 09d8f8c488
commit e96f1559e7
4 changed files with 22 additions and 6 deletions

8
helpdesk/tasks.py Normal file
View File

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