src/Leevel/Protocol/Server.php
public function onWorkerStop(SwooleServer $server, int $workerId): void
    {
        $this->log(
            sprintf(
                'Server %s worker %d shutdown',
                $server->setting['process_name'], $workerId
            )
        );
    }
public function onWorkerStop(SwooleServer $server, int $workerId): void
    {
        $this->log(
            sprintf(
                'Server %s worker %d shutdown',
                $server->setting['process_name'], $workerId
            )
        );
    }
worker进程终止时发生

@param \Swoole\Server $server
@param int            $workerId