Skip to content

chore: add actor-level retry for infra errors#2062

Open
SantiagoPittella wants to merge 2 commits intomainfrom
santiagopittella-fix-ntx-builder-note-discarding
Open

chore: add actor-level retry for infra errors#2062
SantiagoPittella wants to merge 2 commits intomainfrom
santiagopittella-fix-ntx-builder-note-discarding

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

@SantiagoPittella SantiagoPittella commented May 7, 2026

closes #2052.

The NTX builder was permanently dropping notes after a run of unrelated infrastructure failures because every error type counted against the per-note max_note_attempts cap.

This PR classifies NtxError into infrastructure vs. intrinsic. Infra failures now retry the same candidate after a exponential backoff (using backon) without touching per-note state. Intrinsic failures keep the existing behaviour.

This PR also introduces a dependency for backoff, backon, and note that I didn't used the retry feature (probably the most important part) because we use a tokio::select! that needs to interleave several other things around each retry. Making use of retry will require further "plumbing" changes.

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