You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.log(`Setting maxActiveRequests from [${this.maxActiveRequests}] to [${newMaxActiveRequests}]`)
this.maxActiveRequests=newMaxActiveRequests
returnthis.getJSONCb(url,handler)
}elseif(err.response&&err.response.status===404){
handler(err)
}
}catch(a){
logger.log('ERR',err)
handler(err)
}
})
}
I have following interrogations:
why do we only decrease the level of parallelism? to me, the general intent of 429 error is to ask for a pause, not to ask for less requests in parallel (even if obviously this has an impact)
this code looks like a trap, there is no escape, we might fell stuck in this loop forever since we might continue to call too often, and the upstream might continue to ask to slow down with a 429 error
why don't we use the backoff mechanism which is already in place, so that we make a pause + the pause is exponentially long?
why is this implement only for getJSONCb method? 429 could happen in any HTTP call (aside S3 ones probably) so this should be more generic from my PoV
WDYT?
The text was updated successfully, but these errors were encountered:
mwoffliner/src/Downloader.ts
Lines 457 to 478 in 7c3857a
I have following interrogations:
WDYT?
The text was updated successfully, but these errors were encountered: