fix(worker): slow cron cadence to let Neon compute sleep - #305
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Slow down two Vercel cron schedules in the worker to reduce Neon Postgres compute cost.
Changes
/cron/poll:* * * * *->*/15 * * * */cron/harness-capabilities:*/5 * * * *->*/30 * * * *Rationale
The every-minute poll never lets Neon autosuspend (5 min idle) fire, keeping compute awake 24/7 and driving roughly $120/mo in compute. Dispatch is event-driven from jira/gitlab/github webhooks, so the poll is only a backstop; a 15 min backstop is acceptable.
🤖 Generated with Claude Code