From a1a223a8b58b880fb762a1acf0a20a470e52cfa1 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Thu, 9 May 2024 13:57:25 +0100 Subject: [PATCH 1/2] Ensure unary steps only perform unbatched execution once. --- grafast/grafast/src/engine/executeBucket.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grafast/grafast/src/engine/executeBucket.ts b/grafast/grafast/src/engine/executeBucket.ts index 6728c111b2..dba187a41e 100644 --- a/grafast/grafast/src/engine/executeBucket.ts +++ b/grafast/grafast/src/engine/executeBucket.ts @@ -578,6 +578,12 @@ export function executeBucket( const step = sudo( _allSteps[allStepsIndex] as UnbatchedExecutableStep, ); + + // Unary steps only need to be processed once + if (step._isUnary && dataIndex !== 0) { + continue; + } + try { const deps: any = []; const extra = extras[allStepsIndex]; From bd5a908a4d04310f90dfb46ad87398ffa993af3b Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Thu, 9 May 2024 14:06:21 +0100 Subject: [PATCH 2/2] docs(changeset): Hotfix: unbatched unary steps executed multiple times under certain circumstances leading to excessive logging. --- .changeset/strange-schools-act.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/strange-schools-act.md diff --git a/.changeset/strange-schools-act.md b/.changeset/strange-schools-act.md new file mode 100644 index 0000000000..7526dfc46d --- /dev/null +++ b/.changeset/strange-schools-act.md @@ -0,0 +1,6 @@ +--- +"grafast": patch +--- + +Hotfix: unbatched unary steps executed multiple times under certain +circumstances leading to excessive logging.