Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(runWebScraper): don't fetch next job
Gergo Moriczb5ec47fd96b2
diff --git a/apps/api/src/main/runWebScraper.ts b/apps/api/src/main/runWebScraper.tsindex 5e7d22797..76665aa25 100644--- a/apps/api/src/main/runWebScraper.ts+++ b/apps/api/src/main/runWebScraper.ts@@ -131,13 +131,13 @@ const saveJob = async (job: Job, result: any) => {if (error) throw new Error(error.message);try {- await job.moveToCompleted(null);+ await job.moveToCompleted(null, false, false);} catch (error) {// I think the job won't exist here anymore}} else {try {- await job.moveToCompleted(result);+ await job.moveToCompleted(result, false, false);} catch (error) {// I think the job won't exist here anymore}