Skip to content

ci: keep the live demo awake from 08:00 to midnight IST - #50

Merged
Vishwas1345 merged 1 commit into
mainfrom
chore/keep-warm
Oct 19, 2026
Merged

Vishwas1345 merged 1 commit into
mainfrom
chore/keep-warm

Conversation

@Vishwas1345

Copy link
Copy Markdown
Owner

What

.github/workflows/keep-warm.yml: an anonymous GET /login on the live site every 5 minutes, 08:00 to 23:55 IST, plus a manual trigger. The docs that described the 15-minute sleep are updated (DEPLOYMENT, INFRA, GAPS, README).

Why this shape

  • A window, not 24/7. Only a boot resets the demo, so it still sleeps overnight and each morning starts fresh. Kept up all day and night it would carry one visitor's approvals to the next, eventually age out of the dashboard's 7-day window, and keep Neon's compute awake the whole time.
  • A page GET, not a sign-in. A sign-in writes an audit entry, and the reset only runs after 10 minutes with none. It would also need the password in CI.
  • Every 5 minutes. GitHub can start scheduled runs late, and a 10-minute gap would leave no margin before the 15-minute sleep.
  • permissions: {}, no secrets, and only the status code is printed.

Trade-offs

  • About 480 of Render's 750 free hours a month. Neon stays awake for the same hours, since the worker queries it on a timer.
  • A late scheduled run can still let the site sleep now and then.
  • GitHub turns schedules off in a repo with 60 days of no activity.
  • Two visitors on the same day share one demo.

Verified

  • actionlint 1.7.7 passes.
  • The three cron lines expand to 192 runs a day, from 08:00 to 23:55 IST, with exactly 5 minutes between each.
  • The exact curl command returns 200 against the live site.

🤖 Generated with Claude Code

The free Render service sleeps after 15 idle minutes, so a reviewer could
wait minutes for a cold boot. A scheduled anonymous GET of /login every 5
minutes keeps it up in the day and lets it sleep overnight, because only a
boot resets the demo. Never a sign-in: it would write an audit entry and
stop the idle reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vishwas1345
Vishwas1345 merged commit a64c7eb into main Oct 19, 2026
5 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.

1 participant