public function getJob(string $name): Definition
    {
        if (!$this->hasJob($name)) {
            throw new \InvalidArgumentException('Job not found: ' . $name);
        }

        return $this->jobs[$name];
    }