Skip to content

Give shepherd_db's healthcheck a start_period so slow boots don't fail the stack - #141

Merged
maximusunc merged 2 commits into
mainfrom
claude/shepherd-startup-errors-xsnogv
Aug 24, 2026
Merged

Give shepherd_db's healthcheck a start_period so slow boots don't fail the stack#141
maximusunc merged 2 commits into
mainfrom
claude/shepherd-startup-errors-xsnogv

Conversation

@maximusunc

Copy link
Copy Markdown
Collaborator

No description provided.

claude and others added 2 commits August 24, 2026 13:43
…l the stack

`docker compose up` intermittently died with "dependency shepherd_db failed
to start". The DB healthcheck had no start_period, so Docker counted probe
failures from container start: 5 retries x 2s marked Postgres unhealthy about
10s in, which is often before it has even begun accepting connections. The
"FATAL: the database system is starting up" line in the logs is a probe being
correctly rejected mid-recovery, and it lands on the last retry.

Also probe 127.0.0.1 instead of the default Unix socket. On a first run the
postgres entrypoint starts a temporary socket-only server to apply
init_db.sql; a socket probe reports ready against that, dependents connect,
and the entrypoint then shuts it down under them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PQeAtdPFUgZ1BTB3UB6oXc
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.95%. Comparing base (b1c8936) to head (7dda5e8).
⚠️ Report is 5 commits behind head on main.
see 9 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4298e3b...7dda5e8. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@maximusunc
maximusunc merged commit bba0259 into main Aug 24, 2026
2 checks passed
@maximusunc
maximusunc deleted the claude/shepherd-startup-errors-xsnogv branch August 24, 2026 14:26
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.

2 participants