mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-16 21:16:47 -07: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) {
|
if (!isThrottle || attempt === maxAttempts) {
|
||||||
throw error;
|
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));
|
await new Promise((r) => setTimeout(r, delayMs));
|
||||||
delayMs *= 2;
|
delayMs *= 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user