Skip to content

fix(lifecycle): reduce idle Neon wakeups - #1115

Merged
blove merged 1 commit into
mainfrom
codex/reduce-neon-idle-dispatch
Sep 21, 2026
Merged

blove merged 1 commit into
mainfrom
codex/reduce-neon-idle-dispatch

Conversation

@blove

@blove blove commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

The every-minute lifecycle cron enters Dawn and checks Growth even when no work is due, keeping idle Neon computes active. Run the existing fallback every 15 minutes instead: 96 scheduled invocations per day rather than 1,440. Forms retain their immediate post-commit lifecycle nudges, and campaign/reply/stop/lease controls are unchanged.

Background reconciliation and retries may wait up to 15 minutes plus execution time. The campaign window still has four scheduled ticks; at the default batch size those share capacity for 80 jobs. Operational docs now describe that limit. The live Growth queue had no due jobs or expired leases and two future campaign sends during investigation.

Validation:

  • Updated schedule test failed on the original cron, then passed after the change.
  • Six targeted website suites: 139 tests passed, including immediate nudges and durable acceptance when a nudge fails.
  • npx nx test website passed.
  • npx nx lint website passed with 82 existing warnings and no errors.
  • Independent review found no blocking issues; git diff --check passed.

This change reduces scheduled wakeups; CU-hour savings depend on other traffic and Neon settings. It does not reset an exhausted allowance or change billing. The emailed Neon project still needs console mapping; all three database endpoints configured on production lifecycle accepted bounded read-only probes.

@vercel

vercel Bot commented Sep 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadplane Ready Ready Preview Sep 21, 2026 7:22pm UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove enabled auto-merge (squash) September 21, 2026 19:20
@blove
blove merged commit 6754c96 into main Sep 21, 2026
33 checks passed

This branch was successfully deployed

1 active deployment
Preview – threadplane bca1a983 Deployed Sep 21, 2026 by vercel[bot]
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