From f7df350964c5d08d17ee078532c239a9c1d85f9b Mon Sep 17 00:00:00 2001 From: Frostebite Date: Sat, 6 Sep 2025 02:42:20 +0100 Subject: [PATCH] fix(aws): increase backoff and handle throttling in DescribeTasks/GetRecords --- src/model/cloud-runner/providers/aws/aws-task-runner.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model/cloud-runner/providers/aws/aws-task-runner.ts b/src/model/cloud-runner/providers/aws/aws-task-runner.ts index 50c6ad81..afdbfbd8 100644 --- a/src/model/cloud-runner/providers/aws/aws-task-runner.ts +++ b/src/model/cloud-runner/providers/aws/aws-task-runner.ts @@ -148,7 +148,9 @@ class AWSTaskRunner { if (!isThrottle || attempt === maxAttempts) { throw error; } - CloudRunnerLogger.log(`AWS throttled DescribeTasks (attempt ${attempt}/${maxAttempts}), backing off ${delayMs}ms`); + CloudRunnerLogger.log( + `AWS throttled DescribeTasks (attempt ${attempt}/${maxAttempts}), backing off ${delayMs}ms`, + ); await new Promise((r) => setTimeout(r, delayMs)); delayMs *= 2; }