Skip to content

Commit

Permalink
perf: Stop trying to unfail if the subgraph wasn't even failed
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Apr 4, 2024
1 parent b275b96 commit 31943fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/subgraph/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,10 @@ where
.store
.unfail_non_deterministic_error(&block_ptr)?;

// Stop trying to unfail.
self.state.should_try_unfail_non_deterministic = false;

if let UnfailOutcome::Unfailed = outcome {
// Stop trying to unfail.
self.state.should_try_unfail_non_deterministic = false;
self.metrics.stream.deployment_failed.set(0.0);
self.state.backoff.reset();
}
Expand Down

0 comments on commit 31943fc

Please sign in to comment.