Skip to content

Commit

Permalink
Allow environment specification of Celery broker
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Jul 14, 2016
1 parent 4692d10 commit 5386a4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cesium_app/celery_app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from celery import Celery
from cesium.celery_app import celery_config

import os
CELERY_BROKER = os.environ.get(
'CELERY_BROKER', celery_config['CELERY_BROKER'])

celery_config['CELERY_IMPORTS'].append('cesium_app.celery_tasks')
#celery_config['CELERY_RESULT_DBURI'] = 'db+postgresql://cesium:cesium@localhost/cesium'
#celery_config['CELERY_RESULT_BACKEND'] = 'db+postgresql://cesium:cesium@localhost/cesium'
app = Celery('cesium_app', broker=celery_config['CELERY_BROKER'])
app = Celery('cesium_app', broker=CELERY_BROKER)
app.config_from_object(celery_config)

0 comments on commit 5386a4d

Please sign in to comment.