Skip to content

Closes: #17 Render Deployment Health Check Worflow#107

Open
p3ris0n wants to merge 1 commit into
StepFi-app:mainfrom
p3ris0n:feat/healthcheck-workflow
Open

Closes: #17 Render Deployment Health Check Worflow#107
p3ris0n wants to merge 1 commit into
StepFi-app:mainfrom
p3ris0n:feat/healthcheck-workflow

Conversation

@p3ris0n

@p3ris0n p3ris0n commented Jul 23, 2026

Copy link
Copy Markdown

feat: Add automated health check to prevent silent API outages

Description

This PR addresses the issue of the Render free-tier instance spinning down due to inactivity, which caused the first subsequent request to take 30+ seconds and allowed the service to experience silent outages without maintainers knowing.

A new GitHub Actions workflow acts as a heartbeat monitor. It pings the /api/v1/health endpoint every 6 hours to keep the instance warm. If the ping fails (returns a non-200 HTTP status), the workflow leverages actions/github-script to automatically alert maintainers.

To prevent issue spam during prolonged downtime, it implements a deduplication check: if an open incident issue already exists, it simply appends a comment to that issue rather than creating a new one.

Changes Made

  • New Workflow (health-check.yml): Added a GitHub Action triggered via cron (0 */6 * * *) and manually via workflow_dispatch. Pings the live health endpoint and handles non-200 failures.
  • Automated Incident Tracking: Uses github-script and the default GITHUB_TOKEN to manage issues with the incident label (no hard-coded secrets used).
  • Documentation Updates: Updated the README.md to document the heart-beat ping operation and the incident label.
  • Progress Tracker: Added a new entry to context/progress-tracker.md to log this architectural/ops change.

Testing & Verification

  • Workflow triggers: Verified YAML syntax for both schedule and workflow_dispatch.
  • Secret security: Validated that no secrets are committed to the codebase.
  • CI: (Pending Actions run on this PR)

Related Issues

*Closes #17 *

@p3ris0n
p3ris0n requested a review from EmeditWeb as a code owner July 23, 2026 07:34
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.

[35] Add Render deployment health check workflow

1 participant