Skip to content

Commit

Permalink
Add retries
Browse files Browse the repository at this point in the history
  • Loading branch information
sukrit007 committed Jan 17, 2015
1 parent b63ace0 commit 390bcb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/celeryconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
# Broker and Queue Settings
BROKER_URL = os.getenv('BROKER_URL',
'amqp://guest:guest@localhost:5672')
BROKER_CONNECTION_TIMEOUT = int(os.getenv('BROKER_CONNECTION_TIMEOUT', '20'))
BROKER_HEARTBEAT = int(os.getenv('BROKER_HEARTBEAT', '20'))
BROKER_CONNECTION_RETRY = True
BROKER_CONNECTION_MAX_RETRIES = 100
CELERY_DEFAULT_QUEUE = 'cluster-deployer-%s-default' % CLUSTER_NAME
CELERY_PREFORK_QUEUE = 'cluster-deployer-%s-prefork' % CLUSTER_NAME
CELERY_QUEUES = (
Expand Down

0 comments on commit 390bcb4

Please sign in to comment.