Merges 55e9b2263c from versions/next
with code from GitLab issue #594 and GitLab merge request !55.
Thanks to Jakob Haufe (@sur5r) and Jesaja Everling (@jeverling)
for much of the research and code updates.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
14 lines
367 B
Python
14 lines
367 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
import os
|
|
|
|
from django.conf import settings
|
|
|
|
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(lambda: settings.INSTALLED_APPS)
|