mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 02:00:01 -03:30
clarity edit of uWSGI chain reload task
This commit is contained in:
@@ -85,8 +85,11 @@ def celery_startup(conf=None, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
def uwsgi_reload():
|
def uwsgi_reload():
|
||||||
"Does chain reload of uWSGI"
|
# http://uwsgi-docs.readthedocs.io/en/latest/MasterFIFO.html#available-commands
|
||||||
os.system("echo c > /tmp/awxfifo")
|
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')
|
@task(queue='broadcast_all')
|
||||||
|
|||||||
Reference in New Issue
Block a user