Skip to content

Uptime Health Check #1583

Uptime Health Check

Uptime Health Check #1583

Workflow file for this run

name: Uptime Health Check
on:
push:
branches: [master]
schedule:
- cron: '0 * * * *' # hourly instead of every 15 min
workflow_dispatch:
jobs:
health-check:
runs-on: ubuntu-latest
steps:
- name: Check Argus API health
run: |
STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://argus-web-backend-production.up.railway.app/health || echo "000")
if [ "$STATUS" = "200" ]; then
echo "Health check OK"
else
echo "Backend returned HTTP $STATUS — may be scaled down (expected)"
fi
- name: Verify stats endpoint
run: |
STATS=$(curl -s https://argus-web-backend-production.up.railway.app/stats || echo "{}")
echo "Stats: $(echo $STATS | head -c 200)"