A small Bun + TypeScript script that restarts a Railway service's latest deployment on a schedule. Designed to run as a Railway cron service in the same project as the target service.
- Fetches the latest deployment for the target service via Railway's GraphQL API.
- Verifies it's in
SUCCESSstatus (skips otherwise). - Calls
deploymentRestartto restart the running container without rebuilding.