diff --git a/packages/sequencer/src/protocol/production/flow/ReductionTaskFlow.ts b/packages/sequencer/src/protocol/production/flow/ReductionTaskFlow.ts
index 63a5b720..95f28ba1 100644
--- a/packages/sequencer/src/protocol/production/flow/ReductionTaskFlow.ts
+++ b/packages/sequencer/src/protocol/production/flow/ReductionTaskFlow.ts
@@ -42,7 +42,7 @@ export class ReductionTaskFlow {
reductionTask: Task, Output>;
mergableFunction: (a: Output, b: Output) => boolean;
},
- private readonly flowCreator: FlowCreator
+ flowCreator: FlowCreator
) {
this.flow = flowCreator.createFlow>(options.name, {
numMergesCompleted: 0,
@@ -121,8 +121,10 @@ export class ReductionTaskFlow {
const { availableReductions, touchedIndizes } =
this.resolveReducibleTasks(flow.state.queue, options.mergableFunction);
- // I don't know exactly what this rule wants from me, I suspect
- // it complains bcs the function is called forEach
+ flow.state.queue = flow.state.queue.filter(
+ (ignored, index) => !touchedIndizes.includes(index)
+ );
+
await flow.forEach(availableReductions, async (reduction) => {
const taskParameters: PairTuple