change it again

This commit is contained in:
Georges-Antoine Assi
2026-01-10 14:32:32 -05:00
parent 53330536e0
commit f40dcb25a6
2 changed files with 5 additions and 4 deletions

View File

@@ -72,17 +72,18 @@ run_startup() {
wait_for_gunicorn_socket() {
debug_log "Waiting for gunicorn socket file..."
local retries=${WEB_SERVER_GUNICORN_WAIT:=30}
local wait_seconds=${WEB_SERVER_GUNICORN_WAIT_SECONDS:=30}
local retries=$((wait_seconds * 2))
while [[ ! -S /tmp/gunicorn.sock && retries -gt 0 ]]; do
sleep 1
sleep 0.5
((retries--))
done
if [[ -S /tmp/gunicorn.sock ]]; then
debug_log "Gunicorn socket file found"
else
warn_log "Gunicorn socket file not found after waiting ${WEB_SERVER_GUNICORN_WAIT:=30} seconds!"
warn_log "Gunicorn socket file not found after waiting ${wait_seconds}s!"
fi
}

View File

@@ -122,7 +122,7 @@ WEB_SERVER_KEEPALIVE=2
WEB_SERVER_MAX_REQUESTS=1000
WEB_SERVER_MAX_REQUESTS_JITTER=100
WEB_SERVER_WORKER_CONNECTIONS=1000
WEB_SERVER_GUNICORN_WAIT=30
WEB_SERVER_GUNICORN_WAIT_SECONDS=30
IPV4_ONLY=false
# Redis Workers