From 636cbe9f9be52f4a2447d1dc541f1bbc443814bf Mon Sep 17 00:00:00 2001 From: yaosen <741606767@qq.com> Date: Mon, 1 Jul 2024 19:21:53 +0800 Subject: [PATCH] a --- service/app/server/Douyin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/app/server/Douyin.php b/service/app/server/Douyin.php index 1b64e7cf..1623e40d 100644 --- a/service/app/server/Douyin.php +++ b/service/app/server/Douyin.php @@ -249,11 +249,11 @@ class Douyin public function _getRetriesLock(): bool { $pattern = 'php webman spider:dy'; - $maxProcesses = 8; + $maxProcesses = 4; $this->_killMiddleProcesses($pattern, $maxProcesses); - $maxRetries = 10; + $maxRetries = 5; $retries = 0; while ($retries < $maxRetries) { $back = Redis::set('SpiderMt:CertificateList:lock', time(), 'EX', 1, 'NX');