This commit is contained in:
as2252258@163.com
2021-03-20 03:51:07 +08:00
parent 491d4bc50a
commit 95cc43ab39
2 changed files with 8 additions and 16 deletions
+2
View File
@@ -189,6 +189,8 @@ class Crontab extends BaseObject
public function execute(CrontabProcess $process): void
{
try {
$this->warning('execute crontab.');
call_user_func($this->handler, $this->params);
$this->execute_number += 1;
if ($this->execute_number >= $this->max_execute_number) {