move service definition into settings

This commit is contained in:
AlanCoding
2017-02-15 12:07:30 -05:00
parent d8f133d175
commit 186b672e4f
4 changed files with 63 additions and 17 deletions

View File

@@ -112,3 +112,15 @@ except ImportError:
CLUSTER_HOST_ID = socket.gethostname()
CELERY_ROUTES['awx.main.tasks.cluster_node_heartbeat'] = {'queue': CLUSTER_HOST_ID, 'routing_key': CLUSTER_HOST_ID}
# Supervisor service name dictionary used for programatic restart
SERVICE_NAME_DICT = {
"celery": "celeryd",
"callback": "receiver",
"runworker": "channels",
"uwsgi": "uwsgi",
"daphne": "daphne",
"fact": "factcacher",
"nginx": "nginx"}
# Used for sending commands in automatic restart
uWSGI_FIFO_LOCATION = '/awxfifo'