mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-01-29 03:59:08 +08:00
fix(aws): increase backoff and handle throttling in DescribeTasks/GetRecords
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user