This commit is contained in:
as2252258@163.com
2021-03-20 03:43:30 +08:00
parent 2e7f251bbd
commit 34fcae2cee
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -190,11 +190,9 @@ class Crontab extends BaseObject
public function execute(CrontabProcess $process): void
{
try {
var_dump('execute');
call_user_func($this->handler, $this->params);
$this->execute_number += 1;
if ($this->execute_number >= $this->max_execute_number) {
$this->clearTimer();
$process->clear($this->getName());
} else if (!$this->isLoop()) {
$process->clear($this->getName());