github.com/blystad/deis@v0.11.0/controller/deis/celery.py (about)

     1  """
     2  Celery task queue setup for a Deis controller.
     3  """
     4  
     5  from __future__ import absolute_import
     6  
     7  import os
     8  
     9  from celery import Celery
    10  from django.conf import settings
    11  
    12  
    13  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deis.settings')
    14  
    15  app = Celery('deis')
    16  app.config_from_object('django.conf:settings')
    17  app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)