Update dependencies, add more logging to crons

This commit is contained in:
Bruno Bernardino
2024-04-17 14:01:06 +01:00
parent bcf54f148e
commit 7fd29ba7bf
9 changed files with 20 additions and 16 deletions

View File

@@ -16,10 +16,12 @@ export async function fetchNewArticles(forceFetch = false) {
],
);
console.info('Will crawl', feedsToCrawl.length, 'news feeds');
await concurrentPromises(feedsToCrawl.map((newsFeed) => () => crawlNewsFeed(newsFeed)), 3);
console.log('Crawled', feedsToCrawl.length, 'news feeds');
console.info('Crawled', feedsToCrawl.length, 'news feeds');
} catch (error) {
console.log(error);
console.error(error);
}
}