This commit is contained in:
yaosen 2024-07-01 19:13:25 +08:00
parent edd559bef9
commit 4f3eaaa2f0
1 changed files with 2 additions and 2 deletions

View File

@ -249,11 +249,11 @@ class Douyin
public function _getRetriesLock(): bool
{
$pattern = 'php webman spider:dy';
$maxProcesses = 24;
$maxProcesses = 8;
$this->_killMiddleProcesses($pattern, $maxProcesses);
$maxRetries = 20;
$maxRetries = 10;
$retries = 0;
while ($retries < $maxRetries) {
$back = Redis::set('SpiderMt:CertificateList:lock', time(), 'EX', 1, 'NX');