Upgrade Celery version used from 3.1.26 to 4.1.1. The following settings have been renamed: CELERY_ALWAYS_EAGER to CELERY_TASK_ALWAYS_EAGER, BROKER_URL to CELERY_BROKER_URL. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
13 lines
303 B
Python
13 lines
303 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
import os
|
|
|
|
from .runtime import celery_class
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mayan.settings.production')
|
|
|
|
app = celery_class('mayan')
|
|
|
|
app.config_from_object('django.conf:settings', namespace='CELERY')
|
|
app.autodiscover_tasks()
|