public function isQueueFull() { return $this->maxConcurrency !== -1 && $this->jobsNum - $this->resultsNum >= $this->maxConcurrency; }