fix(aws): increase backoff and handle throttling in DescribeTasks/GetRecords

This commit is contained in:
Frostebite
2025-09-06 02:42:20 +01:00
parent af988e6d2a
commit f7df350964

View File

@@ -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;
}