/** * @inheritdoc */ public function store(JobInterface $job) { $dbTimestampFormat = 'Y-m-d H:i:s'; return (bool) $this->insert(['tube' => $job->getQueue(), 'data' => serialize($job->getBody()), 'scheduled_ts' => $job->getDatetimeDelay()->format($dbTimestampFormat), 'priority' => $job->getPriority(), 'ttr' => $job->getTtr(), 'create_ts' => date($dbTimestampFormat)]); }