public function storeJob($job, $data, $queue, $timestamp = 0)
    {
        $payload = $this->createPayload($job, $data);

        $job = new Job();
        $job->setConnection($this->database->getName());
        $job->queue = ($queue ? $queue : $this->default);
        $job->status = Job::STATUS_OPEN;
        $job->timestamp = date('Y-m-d H:i:s', ($timestamp != 0 ? $timestamp : time()));
        $job->payload = $payload;
        $job->save();

        return $job->id;
    }