This commit is contained in:
parent
4f3eaaa2f0
commit
636cbe9f9b
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue