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