mirror of
https://github.com/lukaszraczylo/git-velocity.git
synced 2026-06-06 22:49:27 +00:00
Add retry logic for GitHub graphql requests
This commit is contained in:
@@ -301,12 +301,16 @@ func isRetryableError(err error) bool {
|
||||
"timeout",
|
||||
"temporary failure",
|
||||
"server error",
|
||||
"stream error",
|
||||
"CANCEL",
|
||||
"EOF",
|
||||
"broken pipe",
|
||||
"502",
|
||||
"503",
|
||||
"504",
|
||||
}
|
||||
for _, msg := range retryableMessages {
|
||||
if strings.Contains(strings.ToLower(errStr), msg) {
|
||||
if strings.Contains(strings.ToLower(errStr), strings.ToLower(msg)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user