From 87bda6c7495959660f1850acd35f07807f417edf Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Fri, 16 Jun 2023 11:49:08 +0200 Subject: [PATCH] fix: ignore queue aborted errors in prepareForNextSlot --- packages/beacon-node/src/chain/prepareNextSlot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/src/chain/prepareNextSlot.ts b/packages/beacon-node/src/chain/prepareNextSlot.ts index 040783185a00..e15d159f43ba 100644 --- a/packages/beacon-node/src/chain/prepareNextSlot.ts +++ b/packages/beacon-node/src/chain/prepareNextSlot.ts @@ -8,6 +8,7 @@ import {GENESIS_SLOT, ZERO_HASH_HEX} from "../constants/constants.js"; import {Metrics} from "../metrics/index.js"; import {TransitionConfigurationV1} from "../execution/engine/interface.js"; import {ClockEvent} from "../util/clock.js"; +import {isQueueErrorAborted} from "../util/queue/index.js"; import {prepareExecutionPayload, getPayloadAttributesForSSE} from "./produceBlock/produceBlockBody.js"; import {IBeaconChain} from "./interface.js"; import {RegenCaller} from "./regen/index.js"; @@ -172,7 +173,7 @@ export class PrepareNextSlotScheduler { } } } catch (e) { - if (!isErrorAborted(e)) { + if (!isErrorAborted(e) && !isQueueErrorAborted(e)) { this.metrics?.precomputeNextEpochTransition.count.inc({result: "error"}, 1); this.logger.error("Failed to run prepareForNextSlot", {nextEpoch, isEpochTransition, prepareSlot}, e as Error); }