Skip to content

Commit 85d9fd6

Browse files
committed
fix(hitl): set endedAt when cancelling paused execution
Without endedAt, the logs API running filter (isNull(endedAt)) would keep cancelled paused executions in the running view indefinitely.
1 parent 42d17d6 commit 85d9fd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/workflows/executor/human-in-the-loop-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ export class PauseResumeManager {
12871287

12881288
await tx
12891289
.update(workflowExecutionLogs)
1290-
.set({ status: 'cancelled' })
1290+
.set({ status: 'cancelled', endedAt: now })
12911291
.where(eq(workflowExecutionLogs.executionId, executionId))
12921292

12931293
return true

0 commit comments

Comments
 (0)