/** * {@inheritdoc} */ public function getQueue($queue) : string { $queue = parent::getQueue($queue); if (filter_var($queue, FILTER_VALIDATE_URL) !== false) { return $queue; } return rtrim($this->prefix, '/') . '/' . $queue; }
/** * {@inheritdoc} */ protected function createPayload($job, $data = '', string $queue = null) : string { $payload = parent::createPayload($job, $data); $payload = $this->setMeta($payload, 'id', $this->getRandomId()); return $this->setMeta($payload, 'attempts', 1); }