This commit is contained in:
2021-04-28 11:57:49 +08:00
parent 84abde9c23
commit efa8e76011
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class OnPipeMessage extends Callback
throw new Exception('unknown handler'); throw new Exception('unknown handler');
} }
/** @var Crontab $handler */ /** @var Crontab $handler */
$handler = swoole_unserialize($message['handler']); $handler = $message['handler'];
defer(function () use ($handler) { defer(function () use ($handler) {
if ($handler->isRecover() !== 999) { if ($handler->isRecover() !== 999) {
return; return;
+1 -1
View File
@@ -86,7 +86,7 @@ class Zookeeper extends Process
if (empty($handler = $redis->get('crontab:' . $value))) { if (empty($handler = $redis->get('crontab:' . $value))) {
return; return;
} }
$params['handler'] = $handler; $params['handler'] = swoole_unserialize($handler);
$this->server->sendMessage($params, $this->getWorker()); $this->server->sendMessage($params, $this->getWorker());
} catch (Throwable $exception) { } catch (Throwable $exception) {