From 7d384262e476e99af66b7f28603c9ff22f959f43 Mon Sep 17 00:00:00 2001 From: Felipe Alencastro Date: Thu, 14 Mar 2019 17:08:50 -0300 Subject: [PATCH] Makes daphne websocket_timeout infinite. Daphne has a default timeout of 86400 seconds, so after 1 day of starting awx_web container, the stdout stops refreshing automatically on the web UI. This fixes this issue by making the timeout infinite, so the connection between nginx and daphne's websocket never closes. --- installer/roles/image_build/files/supervisor.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/roles/image_build/files/supervisor.conf b/installer/roles/image_build/files/supervisor.conf index cfcaf5ebe9..1409b8b2c2 100644 --- a/installer/roles/image_build/files/supervisor.conf +++ b/installer/roles/image_build/files/supervisor.conf @@ -25,7 +25,7 @@ stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:daphne] -command = /var/lib/awx/venv/awx/bin/daphne -b 127.0.0.1 -p 8051 awx.asgi:channel_layer +command = /var/lib/awx/venv/awx/bin/daphne -b 127.0.0.1 -p 8051 --websocket_timeout -1 awx.asgi:channel_layer directory = /var/lib/awx autostart = true autorestart = true