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