We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ba188 commit b28cd84Copy full SHA for b28cd84
packages/core/src/step.ts
@@ -74,7 +74,8 @@ export function createUseStep(ctx: WorkflowOrchestratorContext) {
74
// Step has started - so remove from the invocations queue (only on the first "step_started" event)
75
if (!hasSeenStepStarted) {
76
// O(1) lookup and delete using Map
77
- ctx.invocationsQueue.delete(correlationId);
+ if (ctx.invocationsQueue.has(correlationId)) {
78
+ ctx.invocationsQueue.delete(correlationId);
79
} else {
80
setTimeout(() => {
81
reject(
0 commit comments