compose-fetcher: Update node-fetch to 2.7.0 and increase max retries to 10

The library update seems to replace the abrupt closing of the app with no error
with actually raising an exception which we already handled.

So now failures look like this:

    Requesting batch 10/17 of commit and pull request data.
    Failed with status 502, retrying (1/10)...
    Error fetching pull request data: FetchError: Invalid response body while trying to fetch https://api.github.com/graphql: Premature close
   Terminating with an exit code 1.
This commit is contained in:
Rémi Verschelde
2025-01-17 00:26:52 +01:00
parent af6d018438
commit d12bf295f9
3 changed files with 40 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ const LogFormat = {
};
const API_DELAY_MSEC = 2500;
const API_MAX_RETRIES = 5;
const API_MAX_RETRIES = 10;
const API_RATE_LIMIT = `
rateLimit {
limit