Checks if the source item has been added into the queue.
bool If the source item is in the queue.
public function isJobInQueue(JobInterface $job) { return in_array($job ->id(), $this->queue); }