We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701a429 commit 40250a2Copy full SHA for 40250a2
1 file changed
apps/sim/executor/handlers/workflow/workflow-handler.ts
@@ -1,3 +1,4 @@
1
+import { randomUUID } from 'node:crypto'
2
import { createLogger } from '@sim/logger'
3
import { buildNextCallChain, validateCallChain } from '@/lib/execution/call-chain'
4
import { snapshotService } from '@/lib/logs/execution/snapshot/service'
@@ -81,7 +82,7 @@ export class WorkflowBlockHandler implements BlockHandler {
81
82
83
// Unique ID per invocation — used to correlate child block events with this specific
84
// workflow block execution, preventing cross-iteration child mixing in loop contexts.
- const instanceId = crypto.randomUUID()
85
+ const instanceId = randomUUID()
86
87
const childCallChain = buildNextCallChain(ctx.callChain || [], workflowId)
88
const depthError = validateCallChain(childCallChain)
0 commit comments