Add arbitrary 5s wait after condition block to diagnose the out-of-order execution in production

This commit is contained in:
Waleed Latif
2025-02-13 13:16:59 -08:00
parent a1f7407eef
commit 8fd25fd813
+1 -1
View File
@@ -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))
}