public function handleWorkerHandlerQueue()
    {
        if (!$this->workerHandlerReady || count($this->workerHandlerQueue) == 0) {
            return;
        }
        $requestId = array_shift($this->workerHandlerQueue);
        $request   = $this->getRequest($requestId);

        if ($request === null) {
            return;
        }

        $this->getLogger()->debug('Sending request: '.$requestId.' to worker-handler.');

        $this->workerHandlerReady = false;

        $this->getStream('workerHandler')->send(
            new ClientHandlerJobRequest(
                $requestId,
                $request->getActionName(),
                $request->getParams()
            )
        );
    }