Skip to content

Instantly share code, notes, and snippets.

@jacobian
Created September 29, 2011 16:30
Show Gist options
  • Save jacobian/1251176 to your computer and use it in GitHub Desktop.
Save jacobian/1251176 to your computer and use it in GitHub Desktop.
[celery]
base = .
djcelery = true
append_settings = false
celery==2.3.1
django-celery==2.3.1
kombu==1.2.1
django-redis-cache==0.6.0
from bundle_config import config
CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': '{host}:{port}'.format(
host=config['redis']['host'],
port=config['redis']['port']),
'OPTIONS': {
'PASSWORD': config['redis']['password'],
},
'VERSION': config['core']['version'],
},
}
CELERY_RESULT_BACKEND = "redis"
REDIS_HOST = CELERY_REDIS_HOST = config['redis']['host']
REDIS_PORT = CELERY_REDIS_PORT = int(config['redis']['port'])
REDIS_PASSWORD = CELERY_REDIS_PASSWORD = config['redis']['password']
REDIS_CONNECT_RETRY = True
BROKER_BACKEND = "redis"
BROKER_TRANSPORT = "redis"
BROKER_HOST = config['redis']['host']
BROKER_PORT = int(config['redis']['port'])
BROKER_PASSWORD = config['redis']['password']
CELERYD_HIJACK_ROOT_LOGGER = False
CELERYD_LOG_COLOR = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment