Skip to content

Fix/graceful shutdown - #11

Merged
raymondproguy merged 3 commits into
mainfrom
fix/graceful-shutdown
Sep 17, 2026
Merged

raymondproguy merged 3 commits into
mainfrom
fix/graceful-shutdown

Conversation

@raymondproguy

Copy link
Copy Markdown
Contributor

No description provided.

raymondproguy and others added 3 commits September 17, 2026 21:45
main.go ended at log.Fatal(ListenAndServe), so SIGTERM killed requests
mid-flight and the os.Exit skipped every defer, including db.Close().
That left the SQLite WAL uncheckpointed: api.db stayed 4096 bytes while
the -wal file held the whole schema.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Four comments asserted it and are now false. shiplog's async-sink
argument changed reasoning rather than wording: the missing pieces are
the buffer and the flush policy, not a lifecycle to hang off.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Records the end-to-end verification (SIGTERM, then the database read
read-only with no sidecar files: 7 migrations, 1 user, 2 sessions), and
retires the owed items in Tiers 3, 5 and 6 and in Tier 7's spec.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@raymondproguy
raymondproguy merged commit 1ddabf1 into main Sep 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant