Skip to content

Fix unfail retry when deployment head behind error block#6529

Open
dimitrovmaksim wants to merge 1 commit intomasterfrom
fix/unfail-retry-behind-error-block
Open

Fix unfail retry when deployment head behind error block#6529
dimitrovmaksim wants to merge 1 commit intomasterfrom
fix/unfail-retry-behind-error-block

Conversation

@dimitrovmaksim
Copy link
Copy Markdown
Member

Fixes #6205

When a subgraph encounters a non-deterministic error and restarts from a checkpoint before the error block, the unfail mechanism would incorrectly stop retrying after the first attempt returned Noop.

This happened because should_try_unfail_non_deterministic was unconditionally set to false after the first unfail attempt, even when the deployment head hadn't reached the error block yet.

Fix: Add UnfailOutcome::BehindErrorBlock variant to distinguish "deployment head behind error block" (keep retrying) from other Noop cases (stop retrying).

…r block

When a subgraph encounters a non-deterministic error and restarts from a
checkpoint before the error block, the unfail mechanism would incorrectly
stop retrying after the first attempt returned Noop.

This happened because `should_try_unfail_non_deterministic` was
unconditionally set to `false` after the first unfail attempt, even when
the deployment head hadn't reached the error block yet.

Fix: Add `UnfailOutcome::BehindErrorBlock` variant to distinguish
"deployment head behind error block" (keep retrying) from other Noop
cases (stop retrying).

Fixes #6205
@dimitrovmaksim dimitrovmaksim force-pushed the fix/unfail-retry-behind-error-block branch from 69539a8 to 5046da3 Compare April 21, 2026 10:14
@dimitrovmaksim dimitrovmaksim self-assigned this Apr 21, 2026
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.

[Bug] SubgraphRunner unfail mechanism fails when block hasn't advanced past error block

1 participant