Adding Concurrency in Pool Manager (#1698)

Concurrency in the pool manager allows specializing pods concurrently based on a specified limit. 

Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
Rahul Bhati
2020-09-16 18:48:08 +05:30
committed by GitHub
co-authored by Vishal
parent c1ac7fcd38
commit f3fe3123b3
25 changed files with 659 additions and 402 deletions
+5
View File
@@ -58,6 +58,8 @@ func MakeErrorFromHTTP(resp *http.Response) error {
errCode = ErrorNameExists
case http.StatusRequestTimeout:
errCode = ErrorRequestTimeout
case http.StatusTooManyRequests:
errCode = ErrorTooManyRequests
default:
errCode = ErrorInternal
}
@@ -83,6 +85,8 @@ func (err Error) HTTPStatus() int {
code = http.StatusNotFound
case ErrorNameExists:
code = http.StatusConflict
case ErrorTooManyRequests:
code = http.StatusTooManyRequests
default:
code = http.StatusInternalServerError
}
@@ -131,6 +135,7 @@ const (
ErrorChecksumFail
ErrorSizeLimitExceeded
ErrorRequestTimeout
ErrorTooManyRequests
)
// must match order and len of the above const