This commit is contained in:
as2252258@163.com
2021-03-20 03:52:28 +08:00
parent 95cc43ab39
commit 0b3a4200f1
+3 -1
View File
@@ -114,7 +114,9 @@ class CrontabProcess extends Process
{
/** @var Crontab $content */
$content = unserialize($content);
$runTicker = [$content->getTickTime() * 1000, [$content, 'execute']];
$runTicker = [$content->getTickTime() * 1000, function () use ($content) {
$content->execute($this);
}];
if ($content->isLoop()) {
$this->names[$content->getName()] = Timer::tick(...$runTicker);
} else {