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:
parent
c6f3d498de
commit
4cc1642ab3
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user