Skip to content

Commit e967933

Browse files
committed
Pass abort signal to sleep before retry
1 parent f8a043e commit e967933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stateMachine/StateExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class StateExecutor {
128128
// Handle `Retry` logic
129129
const { shouldRetry, waitTimeBeforeRetry } = this.shouldRetry(error as RuntimeError);
130130
if (shouldRetry && waitTimeBeforeRetry) {
131-
await sleep(waitTimeBeforeRetry);
131+
await sleep(waitTimeBeforeRetry, options.abortSignal);
132132
return this.execute(input, context, options);
133133
}
134134

0 commit comments

Comments
 (0)