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 2f4d085 commit 2e17fe3Copy full SHA for 2e17fe3
src/core/task/Task.ts
@@ -2801,7 +2801,9 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
2801
// Apply shared exponential backoff and countdown UX
2802
await this.backoffAndAnnounce(retryAttempt, error, errorMsg)
2803
2804
- // Check if task was aborted during the backoff
+ // CRITICAL: Check if task was aborted during the backoff countdown
2805
+ // This prevents infinite loops when users cancel during auto-retry
2806
+ // Without this check, the recursive call below would continue even after abort
2807
if (this.abort) {
2808
throw new Error(
2809
`[Task#attemptApiRequest] task ${this.taskId}.${this.instanceId} aborted during retry`,
0 commit comments