You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three root causes of the 10-second shutdown delay:
1. api-proxy Dockerfile used shell-form CMD (node runs under /bin/sh,
which doesn't forward SIGTERM to the child process). Switched to
exec form so node is PID 1 and handles signals directly.
2. Squid's default shutdown_lifetime (30s) causes it to wait for active
connections to drain. Added shutdown_lifetime 0 since this is an
ephemeral proxy with no need for connection draining.
3. Docker Compose default stop timeout is 10s. Added stop_grace_period
of 2s to squid and api-proxy services since they now shut down
promptly on SIGTERM.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments