protected function jobCanBeProcessed(string $jobName) : bool
    {
        foreach ($this->workerJobCapabilities as $workerId => $jobs) {
            if (in_array($jobName, $jobs)) {
                return true;
            }
        }
        return false;
    }
protected function jobCanBeProcessed(string $jobName) : bool
    {
        foreach ($this->workerJobCapabilities as $workerId => $jobs) {
            if (in_array($jobName, $jobs)) {
                return true;
            }
        }
        return false;
    }
protected function jobCanBeProcessed ( string $ jobName ) : bool { foreach ( $ this -> workerJobCapabilities as $ workerId => $ jobs ) { if ( in_array ( $ jobName , $ jobs ) ) { return true ; } } return false ; }
Check if there is a least one worker capable of doing requested job type.

@param string $jobName
@return bool
Check if there is a least one worker capable of doing requested job type .