Back to feed
Dev.to
Dev.to
6/26/2026
GitHub Actions Crons That Actually Stay Green

GitHub Actions Crons That Actually Stay Green

Short summary

GitHub Actions crons often report success despite doing no work when APIs fail or tokens expire. After incidents that starved content queues unnoticed for days, the author implemented three fixes: health checks at job start (fail fast), no exception swallowing (crash loudly), and queue low-water marks with GitHub issue alerts that fire at 5 items remaining, not zero.

  • Health checks before work, not after, prevent half-failed states
  • Never swallow exceptions; let crashes be loud and informative
  • Queue low-water alarms (5 items, not zero) provide 48-hour warning before starvation

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more