Increase timeout for icon download
Summary:
As mentioned in D33427938 (b05219d09c), we need to keep this way higher for now
as there's something strange going on with the assets endpoint.
Reviewed By: lblasa, mweststrate, aigoncharov
Differential Revision: D33565547
fbshipit-source-id: 6ce9e3371c9fa8f1bf74dd0fd5f3353d99dc2a58
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bc606dc073
commit
abb2c99ecd
@@ -53,7 +53,7 @@ export async function downloadIcons(buildFolder: string) {
|
||||
const url = getPublicIconUrl(icon);
|
||||
return fetch(url, {
|
||||
retryOptions: {
|
||||
retryMaxDuration: 30 * 1000,
|
||||
retryMaxDuration: 120 * 1000,
|
||||
// Be default, only 5xx are retried but we're getting the odd 404
|
||||
// which goes away on a retry for some reason.
|
||||
retryOnHttpResponse: (res) => res.status >= 400,
|
||||
|
||||
Reference in New Issue
Block a user