From 8fd25fd813d2ba137846be5f452b60cbd8d3c24f Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 13 Feb 2025 13:16:31 -0800 Subject: [PATCH] Add arbitrary 5s wait after condition block to diagnose the out-of-order execution in production --- executor/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/index.ts b/executor/index.ts index 24f7083c1a..d67ce3bab5 100644 --- a/executor/index.ts +++ b/executor/index.ts @@ -265,7 +265,7 @@ export class Executor { } else if (block.metadata?.type === 'condition') { const conditionResult = await this.executeConditionalBlock(block, context) // Add a wait here to simulate a slow condition block - const waitTime = 1000 + const waitTime = 5000 if (waitTime > 0) { await new Promise((resolve) => setTimeout(resolve, waitTime)) }