CELERY_TASK_TIME_LIMIT

This commit is contained in:
Nikita P. Shupeyko 2018-06-05 12:54:33 +03:00
parent 7d7eb78773
commit bf8c0d9f31

View File

@ -242,6 +242,9 @@ CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-result_serializer
CELERY_RESULT_SERIALIZER = 'json'
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#task-time-limit
# TODO: set to whatever value is adequate in your circumstances
CELERY_TASK_TIME_LIMIT = 5 * 60
{%- endif %}
# django-allauth