Add comment for rate limiting handling

Added a comment regarding rate limiting and retry behavior.
This commit is contained in:
Ryan Ghadimi
2026-01-16 10:26:45 +00:00
committed by GitHub
parent 9dd77993e7
commit a039cff4a1
@@ -111,6 +111,7 @@ class CacheServiceClient implements Rpc {
}
// Handle rate limiting - don't retry, just warn and exit
// For more info, see https://docs.github.com/en/actions/reference/limits
if (statusCode === HttpCodes.TooManyRequests) {
const retryAfterHeader = response.message.headers['retry-after']
if (retryAfterHeader) {