Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(sim): harden execution cancel durability
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
  • Loading branch information
2 people authored and test committed Mar 13, 2026
commit a99aba21a9a6f475d9c52baf2962c5fa72bdbd5a
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('POST /api/workflows/[id]/executions/[executionId]/cancel', () => {
await expect(response.json()).resolves.toEqual({
success: false,
executionId: 'ex-1',
redisAvailable: false,
redisAvailable: true,
durablyRecorded: false,
reason: 'redis_write_failed',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function POST(
return NextResponse.json({
success: cancellation.durablyRecorded,
executionId,
redisAvailable: cancellation.durablyRecorded,
redisAvailable: cancellation.reason !== 'redis_unavailable',
durablyRecorded: cancellation.durablyRecorded,
reason: cancellation.reason,
})
Expand Down