Commit 72d2eab3 by Guba Sándor

refactor setting to use environment variables

parent b0297698
from celery import Celery
from kombu import Queue, Exchange
from socket import gethostname
from os import getenv
HOSTNAME = gethostname()
AMQP_URI = getenv('AMQP_URI')
celery = Celery('netdriver', backend='amqp',
broker='amqp://cloud:test@10.9.1.31/vmdriver',
include=['tasks'])
broker=AMQP_URI,
include=['netdriver'])
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