1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

clarity edit of uWSGI chain reload task

This commit is contained in:
AlanCoding 2016-12-12 09:40:49 -05:00
parent c6f3d498de
commit 4cc1642ab3

View File

@ -85,8 +85,11 @@ def celery_startup(conf=None, **kwargs):
def uwsgi_reload():
"Does chain reload of uWSGI"
os.system("echo c > /tmp/awxfifo")
# http://uwsgi-docs.readthedocs.io/en/latest/MasterFIFO.html#available-commands
logger.warn('Initiating uWSGI chain reload of server')
TRIGGER_CHAIN_RELOAD = 'c'
with open('/tmp/awxfifo', 'w') as awxfifo:
awxfifo.write(TRIGGER_CHAIN_RELOAD)
@task(queue='broadcast_all')