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 c135224 commit 45ed85dCopy full SHA for 45ed85d
src/core/task/Task.ts
@@ -2874,6 +2874,11 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
2874
2875
// Show countdown timer with exponential backoff
2876
for (let i = finalDelay; i > 0; i--) {
2877
+ // Check abort flag during countdown to allow early exit
2878
+ if (this.abort) {
2879
+ throw new Error(`[Task#${this.taskId}] Aborted during retry countdown`)
2880
+ }
2881
+
2882
await this.say(
2883
"api_req_retry_delayed",
2884
`${headerText}Retry attempt ${retryAttempt + 1}\nRetrying in ${i} seconds...`,
0 commit comments