public function serialize(Job $job): array
    {
        $this->ensureReflectorsInitialized();

        return [
            'id' => $job->getId()->__toString(),
            'name' => $this->jobPropertyReflectors['name']->getValue($job),
            'arguments' => \json_encode($this->jobPropertyReflectors['arguments']->getValue($job)),
            'max_retries' => $this->jobPropertyReflectors['maxRetries']->getValue($job),
            'retries' => $this->jobPropertyReflectors['retries']->getValue($job),
        ];
    }