This commit is contained in:
2021-03-25 15:58:23 +08:00
parent d77967fa75
commit 79b60a390a
2 changed files with 5 additions and 10 deletions
-6
View File
@@ -57,12 +57,6 @@ class Service extends Component
} }
public function zookeeper()
{
}
/** /**
* @param $service * @param $service
* @return string * @return string
+2 -1
View File
@@ -183,6 +183,7 @@ class Crontab extends BaseObject
/** /**
* *
* @throws Exception
*/ */
public function clearTimer() public function clearTimer()
{ {
@@ -199,7 +200,7 @@ class Crontab extends BaseObject
public function execute(): void public function execute(): void
{ {
try { try {
call_user_func($this->handler, $this->params); call_user_func($this->handler, $this->params, $this->name);
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {
$this->addError($throwable->getMessage()); $this->addError($throwable->getMessage());
} finally { } finally {