This commit is contained in:
parent
edd559bef9
commit
4f3eaaa2f0
|
@ -249,11 +249,11 @@ class Douyin
|
||||||
public function _getRetriesLock(): bool
|
public function _getRetriesLock(): bool
|
||||||
{
|
{
|
||||||
$pattern = 'php webman spider:dy';
|
$pattern = 'php webman spider:dy';
|
||||||
$maxProcesses = 24;
|
$maxProcesses = 8;
|
||||||
$this->_killMiddleProcesses($pattern, $maxProcesses);
|
$this->_killMiddleProcesses($pattern, $maxProcesses);
|
||||||
|
|
||||||
|
|
||||||
$maxRetries = 20;
|
$maxRetries = 10;
|
||||||
$retries = 0;
|
$retries = 0;
|
||||||
while ($retries < $maxRetries) {
|
while ($retries < $maxRetries) {
|
||||||
$back = Redis::set('SpiderMt:CertificateList:lock', time(), 'EX', 1, 'NX');
|
$back = Redis::set('SpiderMt:CertificateList:lock', time(), 'EX', 1, 'NX');
|
||||||
|
|
Loading…
Reference in New Issue