feat(nunciod): graceful shutdown with WAL-checkpointing close #340

Merged
KofTwentyTwo merged 1 commits from story/ws-c1-graceful-shutdown into dev 2026-07-31 18:55:17 +00:00
1 Commits
Author SHA1 Message Date
James Maes 516e80f6b6 feat(nunciod): graceful shutdown with WAL-checkpointing close
Install a Ctrl+C/SIGTERM signal handler and share one shutdown signal
across the real-sync command consumer, the outbox worker, the
update-check loop, and the gRPC server, so a clean exit drains every
task and forces the WAL checkpoint via DatabaseEngine::close() instead
of the OS killing the process mid-write. The signal also finally
triggers the existing CoreCommand::Shutdown / CoreEvent::ShuttingDown
event-bus path outside of tests.

Refs #289
2026-07-31 13:52:02 -05:00