From f8e280fcac9ab24bc7f45d9f6ec4b27c465d8403 Mon Sep 17 00:00:00 2001 From: shiyasmohd Date: Tue, 22 Oct 2024 20:59:03 +0530 Subject: [PATCH] core: only unassign subgraph with deterministic err & nonFatalError not used --- core/src/subgraph/runner.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/subgraph/runner.rs b/core/src/subgraph/runner.rs index cd341ce2f99..7d972938075 100644 --- a/core/src/subgraph/runner.rs +++ b/core/src/subgraph/runner.rs @@ -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()))?;