fleet-memory/docker
Kagura 6e90df9818
fix(docker): add graceful shutdown handler to prevent pg0 data loss on restart (#698)
* fix(docker): add graceful shutdown handler to prevent pg0 data loss on restart (#675)

- Trap SIGTERM/SIGINT in start-all.sh to forward signals to child processes
- pg0 (embedded PostgreSQL) now gets a clean shutdown with WAL flush
- 30-second timeout before force-killing unresponsive processes
- Add startup data integrity check: warn if pg0 data dir exists but PG_VERSION missing
- Improve wait loop robustness: trigger cleanup when any child exits unexpectedly

Fixes #675

* fix: address review feedback — re-entrant guard, timeout docs, cleaner glob

- Add SHUTTING_DOWN guard to prevent concurrent cleanup runs
- Document Docker stop_grace_period mismatch (30s cleanup vs 10s default)
- Replace find subprocess with compgen glob for PG_VERSION check
- Add comment explaining wait -n && true idiom
2026-03-27 16:03:10 +01:00
..
docker-compose feat: accept pdf, images and office files (#390) 2026-02-17 18:15:03 +01:00
standalone fix(docker): add graceful shutdown handler to prevent pg0 data loss on restart (#698) 2026-03-27 16:03:10 +01:00
test-image.sh fix: remove broken minimax test and enhance slim smoke test with retain/recall (#564) 2026-03-13 14:10:32 +01:00
test-slim-local.sh feat: switch default model to gpt-4o-mini (#410) 2026-02-19 18:43:52 +01:00