This commit is contained in:
as2252258@163.com
2021-03-26 01:47:24 +08:00
parent 265afa6cb8
commit 075472df92
2 changed files with 20 additions and 33 deletions
+6 -12
View File
@@ -181,10 +181,10 @@ class Crontab extends BaseObject
}
/**
*
* @throws Exception
*/
/**
*
* @throws Exception
*/
public function clearTimer()
{
$this->warning('crontab timer clear.');
@@ -199,14 +199,8 @@ class Crontab extends BaseObject
*/
public function execute(): void
{
try {
// $result = call_user_func($this->handler, $this->params, $this->name);
var_dump(($this->handler)($this->params, $this->name));
} catch (\Throwable $throwable) {
$this->addError($throwable->getMessage());
} finally {
fire(Event::SYSTEM_RESOURCE_RELEASES);
}
var_dump(call_user_func($this->handler, $this->params, $this->name));
}