Skip to content

[codex] Increase production health check retries#13

Merged
haphantran merged 1 commit into
mainfrom
codex/health-check-retries
Jun 17, 2026
Merged

[codex] Increase production health check retries#13
haphantran merged 1 commit into
mainfrom
codex/health-check-retries

Conversation

@haphantran

Copy link
Copy Markdown
Collaborator

Summary

  • Increase production health-check attempts from 3 to 5.
  • Add connect timeout and curl retry handling for transient TLS/connect failures.
  • Cap exponential backoff at 60 seconds.

Why

A transient production API health check failure can pass on retry, so the scheduled monitor should tolerate short network or proxy hiccups before reporting an outage.

Validation

  • ruby YAML parse for .github/workflows/health-check.yml
  • git diff --check

@haphantran haphantran marked this pull request as ready for review June 17, 2026 11:47
Copilot AI review requested due to automatic review settings June 17, 2026 11:47
@haphantran haphantran merged commit 99e6893 into main Jun 17, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the scheduled production health-check workflow to be more resilient to transient connectivity issues by increasing retry attempts and improving retry/backoff behavior.

Changes:

  • Increase overall health-check loop attempts from 3 to 5.
  • Add curl connect timeout plus built-in curl retries for transient failures.
  • Cap exponential backoff delay at 60 seconds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo "Attempt $attempt of $max_attempts..."

if response=$(curl -sf --max-time 30 ${{ vars.APP_URL }}/api/health); then
if response=$(curl -sfS --connect-timeout 10 --max-time 30 --retry 2 --retry-delay 5 --retry-all-errors "$health_url"); then
@haphantran haphantran deleted the codex/health-check-retries branch June 25, 2026 14:54
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