/** * Push a new job onto the queue. * * @param string $job FQN of job to resolve from container * @param mixed $data a payload that will be transferred to the messaging service * @param string $queue an identifier for the queue */ public function push($job, $data = '', $queue = null) { $payload = $this->createPayload($job, $data); return $this->pheanstalk->useTube($this->getQueue($queue))->put($payload, Pheanstalk::DEFAULT_PRIORITY, Pheanstalk::DEFAULT_DELAY); }