From b7ffd265a18c93a82974dfc09cd32cc748c45cdc Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 20 Mar 2021 03:22:27 +0800 Subject: [PATCH] modify --- System/Process/CrontabProcess.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/System/Process/CrontabProcess.php b/System/Process/CrontabProcess.php index c3c4d434..5deab887 100644 --- a/System/Process/CrontabProcess.php +++ b/System/Process/CrontabProcess.php @@ -112,15 +112,17 @@ class CrontabProcess extends Process { /** @var Crontab $content */ $content = unserialize($content); - $runTicker = function () use ($content) { - $this->application->warning('execute crontab ' . date('Y-m-d H:i:s')); - $content->execute($this); - }; +// $runTicker = function () use ($content) { +// $this->application->warning('execute crontab ' . date('Y-m-d H:i:s')); +// $content->execute($this); +// }; // $timer = $content->getTickTime() * 10; $this->waitGroup->add(1); - Timer::after(10000, function () use ($content) { + var_dump(serialize($content)); + + Timer::after(3000, function () use ($content) { $this->waitGroup->add(-1); $this->application->warning('execute crontab ' . date('Y-m-d H:i:s'));