mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
switch to smoother chain reloading
This commit is contained in:
2
Makefile
2
Makefile
@@ -406,7 +406,7 @@ uwsgi: collectstatic
|
|||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/tower/bin/activate; \
|
. $(VENV_BASE)/tower/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
uwsgi -b 32768 --socket :8050 --module=awx.wsgi:application --home=/venv/tower --chdir=/tower_devel/ --vacuum --processes=5 --harakiri=60 --master --no-orphans --py-autoreload 1 --max-requests=1000 --stats /tmp/stats.socket --master-fifo=/tmp/awxfifo
|
uwsgi -b 32768 --socket :8050 --module=awx.wsgi:application --home=/venv/tower --chdir=/tower_devel/ --vacuum --processes=5 --harakiri=60 --master --no-orphans --py-autoreload 1 --max-requests=1000 --stats /tmp/stats.socket --master-fifo=/tmp/awxfifo --lazy-apps
|
||||||
|
|
||||||
daphne:
|
daphne:
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ def celery_startup(conf=None, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
def uwsgi_reload():
|
def uwsgi_reload():
|
||||||
os.system("echo r > /tmp/awxfifo")
|
"Does chain reload of uWSGI"
|
||||||
|
os.system("echo c > /tmp/awxfifo")
|
||||||
|
|
||||||
|
|
||||||
@task(queue='broadcast_all')
|
@task(queue='broadcast_all')
|
||||||
|
|||||||
Reference in New Issue
Block a user