summaryrefslogtreecommitdiffstats
path: root/fcaps/fcaps/celery.py
diff options
context:
space:
mode:
Diffstat (limited to 'fcaps/fcaps/celery.py')
-rw-r--r--fcaps/fcaps/celery.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fcaps/fcaps/celery.py b/fcaps/fcaps/celery.py
index ca3b2e56..93ad6982 100644
--- a/fcaps/fcaps/celery.py
+++ b/fcaps/fcaps/celery.py
@@ -16,11 +16,14 @@ from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
import logging
+from django.conf import settings
+
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fcaps.settings')
-app = Celery('fcaps')
+# app = Celery('fcaps', broker='amqp://guest:guest@localhost:5672//')
+app = Celery('fcaps', broker=settings.RABBITMQ_URL)
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.