Commit 72d2eab3 by Guba Sándor

refactor setting to use environment variables

parent b0297698
from celery import Celery from celery import Celery
from kombu import Queue, Exchange from kombu import Queue, Exchange
from socket import gethostname from socket import gethostname
from os import getenv
HOSTNAME = gethostname() HOSTNAME = gethostname()
AMQP_URI = getenv('AMQP_URI')
celery = Celery('netdriver', backend='amqp', celery = Celery('netdriver', backend='amqp',
broker='amqp://cloud:test@10.9.1.31/vmdriver', broker=AMQP_URI,
include=['tasks']) include=['netdriver'])
celery.conf.update( celery.conf.update(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment