/** * Put back job to the queue. * * @param Job $job The job to restore. * * @return boolean whether the operation succeed. */ protected function releaseJob(Job $job) { return $this->db->rpush($this->key, \yii\helpers\Json::encode(['id' => $job->id, 'data' => $job->header['serialized']])); }