fix(gateway): skip persisting gateway_state=stopped on signal-initiated shutdown (#42675)#42789
fix(gateway): skip persisting gateway_state=stopped on signal-initiated shutdown (#42675)#42789kyssta-exe wants to merge 1 commit into
Conversation
|
Likely duplicate of #42740 — same root cause and the same fix. Consolidating there; flagging for maintainer review. |
|
✅ Verified — signal-initiated teardown skips gateway_state persistence Reviewed the full diff in
The fix is correct. No issues found. |
|
Superseded by #43236 (merged), which fixes #42675 using the existing planned-stop marker primitive instead of inferring intent from the signal. The concern with skipping the |
Fixes #42675. When Docker sends SIGTERM for container restart/upgrade, the gateway unconditionally persists gateway_state=stopped to gateway_state.json. On next boot, container_boot.py reads this state and refuses to auto-start the gateway, leaving messaging channels silently dead. The fix skips persisting stopped state when the shutdown was signal-initiated (no planned-stop or takeover marker), preserving the running state so container_boot auto-starts on next boot.