This commit is contained in:
as2252258@163.com
2021-04-24 00:23:15 +08:00
parent d000afb3d0
commit 5554a032ae
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -46,10 +46,11 @@ class OnPipeMessage extends Callback
*/
private function onCrontabWorker(array $message): string
{
if (empty($handler = $message['handler'] ?? null)) {
if (empty($message['handler'] ?? null)) {
throw new Exception('unknown handler');
}
/** @var Crontab $handler */
$handler = swoole_unserialize($message['handler']);
defer(function () use ($handler) {
$return = $handler->isRecover();
if ($return === 999) {