src/Queue/MongoQueue.php
public function push(JobInterface $job, array $options = [])
    {
        $envelope = $this->createEnvelope($job, $options);

        $result = $this->mongoCollection->insertOne($envelope);

        $job->setId((string) $result->getInsertedId());
    }
public function push(JobInterface $job, array $options = [])
    {
        $envelope = $this->createEnvelope($job, $options);

        $result = $this->mongoCollection->insertOne($envelope);

        $job->setId((string) $result->getInsertedId());
    }
Push a job to the queue.

Valid options are:
- priority: the lower the priority is, the sooner the job get popped from the queue (default to 1024)

Note : see {@link parseOptionsToDateTime()} for schedule and delay options

@param JobInterface $job
@param array $options