celeryconfig.py
1 import os 2 from cabot.settings_utils import environ_get_list 3 4 broker_url = environ_get_list(['CELERY_BROKER_URL', 'CACHE_URL']) 5 # Set environment variable if you want to run tests without a redis instance 6 7 task_always_eager = environ_get_list(['CELERY_ALWAYS_EAGER', 'CELERY_TASK_ALWAYS_EAGER'], False) 8 backend = os.environ.get('CELERY_RESULT_BACKEND', None) 9 task_default_queue = os.environ.get('CELERY_DEFAULT_QUEUE', 'celery') 10 11 timezone = 'UTC'