This commit is contained in:
Cat /dev/Nulo 2024-09-01 16:09:39 -03:00
parent 8729bb0108
commit b93ca09190

View file

@ -38,9 +38,14 @@ async function getRawDatasetInfo() {
);
return await response.json();
} catch (error) {
console.error(`❌ Error fetching dataset info`, error, `retrying in 5min...`);
console.error(
`❌ Error fetching dataset info`,
error,
`retrying in 5min...`,
);
await new Promise((resolve) => setTimeout(resolve, 5 * 60 * 1000));
return await getRawDatasetInfo();
}
}
async function saveDatasetInfoIntoRepo(datasetInfo: any) {