debug
This commit is contained in:
@@ -27,7 +27,7 @@ use app\task\logic\VideoSeoLogic;
|
||||
|
||||
class PlanTask
|
||||
{
|
||||
public static function scanPlanTask($arrData)
|
||||
public static function scanPlanTask($arrData = [])
|
||||
{
|
||||
ProcessSanitizer::destructConnectSource();
|
||||
|
||||
|
||||
@@ -336,7 +336,12 @@ class ServerManage
|
||||
private function cleanupPidFile(): void
|
||||
{
|
||||
$strPidFile = (string) ($this->arrDynamicConfig['service']['pid_file'] ?? '');
|
||||
if ($strPidFile !== '' && is_file($strPidFile)) {
|
||||
if ($strPidFile === '' || !is_file($strPidFile)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$intPid = (int) trim((string) @file_get_contents($strPidFile));
|
||||
if ($intPid === posix_getpid()) {
|
||||
@unlink($strPidFile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user