protected function unregisterJob(string $jobName, string $workerId) : bool
    {
        if (!isset($this->workerJobCapabilities[$jobName])) {
            return true;
        }
        if (($key = array_search($workerId, $this->workerJobCapabilities[$jobName])) !== false) {
            unset($this->workerJobCapabilities[$jobName][$key]);
        }
        if (empty($this->workerJobCapabilities[$jobName])) {
            unset($this->workerJobCapabilities[$jobName]);
        }
        return true;
    }
protected function unregisterJob(string $jobName, string $workerId) : bool
    {
        if (!isset($this->workerJobCapabilities[$jobName])) {
            return true;
        }
        if (($key = array_search($workerId, $this->workerJobCapabilities[$jobName])) !== false) {
            unset($this->workerJobCapabilities[$jobName][$key]);
        }
        if (empty($this->workerJobCapabilities[$jobName])) {
            unset($this->workerJobCapabilities[$jobName]);
        }
        return true;
    }
protected function unregisterJob ( string $ jobName , string $ workerId ) : bool { if ( ! isset ( $ this -> workerJobCapabilities [ $ jobName ] ) ) { return true ; } if ( ( $ key = array_search ( $ workerId , $ this -> workerJobCapabilities [ $ jobName ] ) ) !== false ) { unset ( $ this -> workerJobCapabilities [ $ jobName ] [ $ key ] ) ; } if ( empty ( $ this -> workerJobCapabilities [ $ jobName ] ) ) { unset ( $ this -> workerJobCapabilities [ $ jobName ] ) ; } return true ; }
Unregisters a job-type so the worker will no longer receive jobs of this type.

@param string $jobName
@param string $workerId
@return bool
Unregisters a job - type so the worker will no longer receive jobs of this type .