Skip to content

Add startup health check for cron/browser services#16

Merged
huangruoqi merged 3 commits into
mainfrom
issue-12-health-alert
Jul 4, 2026
Merged

Add startup health check for cron/browser services#16
huangruoqi merged 3 commits into
mainfrom
issue-12-health-alert

Conversation

@huangruoqi

@huangruoqi huangruoqi commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds cron.system_status.check_services() to probe the cron server and browser CDP endpoint, logging a warning for whichever is unreachable
  • bin/outreach-update-check now also emits SERVICE_DOWN <service> <url> lines alongside the existing version check
  • tools/server.py's background startup check now runs both the upgrade check and the new service health probe (renamed to _run_system_check)

Test plan

  • testing/tests/test_system_status.py::test_check_services_returns_both_probes covers the new probe
  • Manually verify make status / server startup logs show health warnings when cron/browser are down

Closes #12

huangruoqi and others added 3 commits July 4, 2026 12:04
curl calls in check_services() had no timeout, so an unreachable-but-not-
refusing host could hang the "non-blocking" health check. Also adds
coverage for the warning-log path and the bash SERVICE_DOWN output, both
previously untested.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@huangruoqi huangruoqi merged commit c037d9a into main Jul 4, 2026
2 checks 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.

Alert operator when cron/browser service health check fails

1 participant