Skip to content

Commit

Permalink
core: only unassign subgraph with deterministic err & nonFatalError n…
Browse files Browse the repository at this point in the history
…ot used
  • Loading branch information
shiyasmohd committed Oct 22, 2024
1 parent 415005f commit f8e280f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/subgraph/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,11 @@ where
// To prevent a buggy pending version from replacing a current version, if errors are
// present the subgraph will be unassigned.
let store = &self.inputs.store;
if has_errors && !ENV_VARS.disable_fail_fast && !store.is_deployment_synced() {
if has_errors
&& !ENV_VARS.disable_fail_fast
&& !store.is_deployment_synced()
&& !is_non_fatal_errors_active
{
store
.unassign_subgraph()
.map_err(|e| BlockProcessingError::Unknown(e.into()))?;
Expand Down

0 comments on commit f8e280f

Please sign in to comment.