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
Update queue-worker.ts
Nicolas3fe82b4f1227
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.tsindex bcf4a2b3d..f819242ee 100644--- a/apps/api/src/services/queue-worker.ts+++ b/apps/api/src/services/queue-worker.ts@@ -117,13 +117,13 @@ async function processJob(job: Job, token: string) {// Check if the job URL is researchhub and block it immediately// TODO: remove this once solve the root issue- if (job.data.url && job.data.url.includes("researchhub.com")) {+ if (job.data.url && (job.data.url.includes("researchhub.com") || job.data.url.includes("ebay.com"))) {Logger.info(`🐂 Blocking job ${job.id} with URL ${job.data.url}`);const data = {success: false,docs: [],project_id: job.data.project_id,- error: "URL is blocked: researchhub.com",+ error: "URL is blocked. Please contact [email protected] if you believe this is an error.",};await job.moveToCompleted(data.docs, token, false);return data;@@ -137,6 +137,7 @@ async function processJob(job: Job, token: string) {current_url: "",});const start = Date.now();+const { success, message, docs } = await startWebScraperPipeline({job,token,