Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
1.0 kB ยท 33 lines
YAML
12345678910111213141516171819202122232425262728293031323334name: Restart Workflows Machines
# Periodic rolling restart to cap the native libsql embedded-replica memory growth# (see apps/workflows/research.md). Restarts machines one at a time so the app stays up.on: schedule: - cron: "0 12 * * *" workflow_dispatch: {}
concurrency: group: restart-workflows cancel-in-progress: false
jobs: restart: name: Rolling restart runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: superfly/flyctl-actions/setup-flyctl@master - name: Restart machines one at a time env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} FLY_APP: openstatus-workflows run: | set -euo pipefail ids=$(flyctl machines list -a "$FLY_APP" --json | jq -r '.[].id') for id in $ids; do echo "Restarting machine $id" flyctl machine restart "$id" -a "$FLY_APP" # Let the machine pass its health check before touching the next one. sleep 45 done