Browse Source

set task fail when not bot matched

master
filesite 1 year ago
parent
commit
0cbb77d445
  1. 1
      spider.mjs

1
spider.mjs

@ -74,6 +74,7 @@ import cron from 'node-cron';
spider_is_running = false; spider_is_running = false;
}else { }else {
console.error('No bot matched with url %s', task.url); console.error('No bot matched with url %s', task.url);
taskMoniter.setTaskFailed(task.id);
} }
}, { }, {
scheduled: false scheduled: false

Loading…
Cancel
Save