mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-09 13:24:37 +00:00
fix HY000/1366 error processing
This commit is contained in:
parent
dc2d971ba0
commit
e16a7b8171
@ -1005,15 +1005,21 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECOND
|
|||||||
// Ban page that throws the data type error and stuck the crawl queue
|
// Ban page that throws the data type error and stuck the crawl queue
|
||||||
if (!empty($queueHostPage->hostPageId) &&
|
if (!empty($queueHostPage->hostPageId) &&
|
||||||
!empty($e->errorInfo[0]) && in_array($e->errorInfo[0], ['HY000']) &&
|
!empty($e->errorInfo[0]) && in_array($e->errorInfo[0], ['HY000']) &&
|
||||||
!empty($e->errorInfo[1]) && in_array($e->errorInfo[1], [1366])) { // @TODO
|
!empty($e->errorInfo[1]) && in_array($e->errorInfo[1], [1366])) { // @TODO change DB
|
||||||
|
|
||||||
$hostPagesBanned += $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time());
|
$hostPagesBanned += $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time());
|
||||||
|
|
||||||
$hostPagesProcessed++;
|
$hostPagesProcessed++;
|
||||||
}
|
|
||||||
|
|
||||||
// Skip item
|
// Apply changes
|
||||||
$db->rollBack();
|
$db->commit();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Skip item
|
||||||
|
$db->rollBack();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user