This commit is contained in:
as2252258@163.com
2021-03-20 03:46:22 +08:00
parent 6e018534a4
commit 1402b2c7f5
+2 -2
View File
@@ -118,8 +118,8 @@ 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);
var_dump('execute crontab ' . date('Y-m-d H:i:s'));
// $content->execute($this);
};
if ($content->isLoop()) {
$worker = Timer::tick($content->getTickTime() * 1000, $runTicker);