Barryvdh\Queue\AsyncQueue::getJobFromId PHP Method

getJobFromId() public method

Get the next available job for the queue.
public getJobFromId ( $id ) : StdClass | null
return StdClass | null
    public function getJobFromId($id)
    {
        $job = $this->database->table($this->table)->where('id', $id)->first();
        if ($job) {
            return new DatabaseJob($this->container, $this, $job, $job->queue);
        }
    }