From 0cbb77d44505c26a503c96a685af60b7b7d5c760 Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 18 Sep 2023 09:22:56 +0800 Subject: [PATCH] set task fail when not bot matched --- spider.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/spider.mjs b/spider.mjs index 87e3363..b2c3e7e 100644 --- a/spider.mjs +++ b/spider.mjs @@ -74,6 +74,7 @@ import cron from 'node-cron'; spider_is_running = false; }else { console.error('No bot matched with url %s', task.url); + taskMoniter.setTaskFailed(task.id); } }, { scheduled: false