feat(backend): added 503 error for assets retrier
This commit is contained in:
parent
6972f84275
commit
d88896d649
1 changed files with 2 additions and 2 deletions
|
|
@ -90,8 +90,8 @@ func (c *cacher) cacheURL(t *Task) {
|
|||
defer res.Body.Close()
|
||||
if res.StatusCode >= 400 {
|
||||
printErr := true
|
||||
// Retry 403 error
|
||||
if res.StatusCode == 403 && t.retries > 0 {
|
||||
// Retry 403/503 errors
|
||||
if (res.StatusCode == 403 || res.StatusCode == 503) && t.retries > 0 {
|
||||
c.workers.AddTask(t)
|
||||
printErr = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue