Skip to content

Commit a99aba2

Browse files
PlaneInABottleclaude
authored andcommitted
fix(sim): harden execution cancel durability
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2865ab3 commit a99aba2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('POST /api/workflows/[id]/executions/[executionId]/cancel', () => {
104104
await expect(response.json()).resolves.toEqual({
105105
success: false,
106106
executionId: 'ex-1',
107-
redisAvailable: false,
107+
redisAvailable: true,
108108
durablyRecorded: false,
109109
reason: 'redis_write_failed',
110110
})

apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function POST(
4949
return NextResponse.json({
5050
success: cancellation.durablyRecorded,
5151
executionId,
52-
redisAvailable: cancellation.durablyRecorded,
52+
redisAvailable: cancellation.reason !== 'redis_unavailable',
5353
durablyRecorded: cancellation.durablyRecorded,
5454
reason: cancellation.reason,
5555
})

0 commit comments

Comments
 (0)