Skip to content

Retry and split transient D1 writes - #463

Draft
seveibar wants to merge 1 commit into
mainfrom
agent/d1-write-fallback
Draft

Retry and split transient D1 writes#463
seveibar wants to merge 1 commit into
mainfrom
agent/d1-write-fallback

Conversation

@seveibar

Copy link
Copy Markdown
Contributor

Summary

  • Retry failed Wrangler D1 commands with exponential backoff.
  • Capture Wrangler stderr so remote failures include actionable diagnostics.
  • If a 50-row footprinter upsert still fails, retry it as smaller sub-batches and leave only exhausted rows eligible for a future run instead of aborting the population.
  • Add unit coverage for retry, split, and exhausted-fallback behavior.

Why

Run #31931087288 stopped after about 24 minutes when a remote 50-row D1 write stalled and Wrangler exited with code 1. The population had already processed 1,200 components, and the final row-count report succeeded, so this was a transient write-path failure rather than an EasyEDA conversion failure.

Validation

  • Root suite: 226 tests passed.
  • Cloudflare proxy suite: 150 tests passed.
  • TypeScript check: passed.
  • Diff check: 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