/** * Pushes a job into the queue * * @param JobInterface $job Job * @param array $options ADDJOB options sent to the client * @return JobInterface Job pushed */ public function push(JobInterface $job, array $options = []) { $this->checkConnected(); $id = $this->client->addJob($this->name, $this->marshaler->marshal($job), $options); $job->setId($id); return $job; }