Skip to content

fix: handle turso 429 load-shed during generate - #111

Merged
reobin merged 3 commits into
mainfrom
fix/handle-turso-429
Oct 15, 2026
Merged

reobin merged 3 commits into
mainfrom
fix/handle-turso-429

Conversation

@reobin

@reobin reobin commented Oct 15, 2026

Copy link
Copy Markdown
Member

the scheduled generate job fails when turso sheds load with 429 during the colorscheme_groups write. the write has no retry and the panic aborts the whole batch.

this change treats 429 rate-limit errors as transient so the write retries, runs the generate write in the retrying transaction, and records a per-repo error so one repo no longer fails the job.

the generate job failed in production when turso returned 429
load-shed on a colorscheme_groups insert. the write had no retry
and the panic aborted the whole batch.

treat 429 rate-limit errors as transient so writes retry, run the
generate write in the retrying transaction, and record a per-repo
error instead of failing the job.
Copilot AI balanced review requested due to automatic review settings October 15, 2026 15:10
@reobin reobin self-assigned this Oct 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@reobin
reobin added this pull request to stack #113 October 15, 2026 15:27
@reobin
reobin merged commit e266e54 into main Oct 15, 2026
3 checks passed
@reobin
reobin deleted the fix/handle-turso-429 branch October 15, 2026 15:49
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.

2 participants