From ece0f0338512a8d1487ab7bbf1c391b948d8f950 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 6 Sep 2023 14:32:21 +0300 Subject: [PATCH] relate exception processing with #11 --- src/crontab/crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crontab/crawler.php b/src/crontab/crawler.php index 44218fd..ee0f341 100644 --- a/src/crontab/crawler.php +++ b/src/crontab/crawler.php @@ -1130,7 +1130,7 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_HOST_PAGE_QUEUE_LIMIT, time() - CRAWL_ // Ban page that throws the data type error and stuck the crawl queue if (!empty($queueHostPage->hostPageId) && !empty($e->errorInfo[0]) && in_array($e->errorInfo[0], ['HY000']) && - !empty($e->errorInfo[1]) && in_array($e->errorInfo[1], [1366])) { // @TODO change DB + !empty($e->errorInfo[1]) && in_array($e->errorInfo[1], [1366])) { // @TODO #11 $hostPagesBanned += $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time());