Skip to content

c0mpute edge: keep last good copies on disk, retry ~10 s before giving up - #34

Merged
ralyodio merged 1 commit into
mainfrom
edge-stale-on-disk
Nov 9, 2026
Merged

ralyodio merged 1 commit into
mainfrom
edge-stale-on-disk

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #33 after a live failure drill on dev2: retry window ~10 s (covers a gateway restart), last good copies persisted to disk so a restart of the edge does not lose them.

npm test: 114/114.

🤖 Generated with Claude Code

…g up

A live drill (SIGKILL dev2's gateway worker) showed two gaps: the 3.5 s retry
window was shorter than a worker restart (~6 s), and the in-memory copies were
gone because the edge had just restarted. Now 6 Fibonacci retries (0.5..4 s)
and copies written through to EDGE_STALE_DIR (default <cert dir>/stale,
pruned oldest first past 1 GiB on start).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit c2cec7e into main Nov 9, 2026
1 check passed
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

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