Add comment for rate limiting handling
Added a comment regarding rate limiting and retry behavior.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user