Skip to content

Commit

Permalink
Makes daphne websocket_timeout infinite.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
falencastro committed Mar 14, 2019
1 parent df72a01 commit 7d38426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/roles/image_build/files/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d38426

Please sign in to comment.