{"record":{"id":"a5df7c9630a3a7bb","repo":"getgrav/grav","slug":"priority-must-be-high-normal-or-low","errorCode":null,"errorMessage":"Priority must be high, normal, or low","messagePattern":"Priority must be high, normal, or low","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/Scheduler/Job.php","lineNumber":790,"sourceCode":"     * @param int $seconds\n     * @return self\n     */\n    public function timeout(int $seconds): self\n    {\n        $this->timeout = $seconds;\n        return $this;\n    }\n    \n    /**\n     * Set job priority\n     * \n     * @param string $priority 'high', 'normal', or 'low'\n     * @return self\n     */\n    public function priority(string $priority): self\n    {\n        if (!in_array($priority, ['high', 'normal', 'low'])) {\n            throw new InvalidArgumentException('Priority must be high, normal, or low');\n        }\n        $this->priority = $priority;\n        return $this;\n    }\n    \n    /**\n     * Get job priority\n     * \n     * @return string\n     */\n    public function getPriority(): string\n    {\n        return $this->priority;\n    }\n    \n    /**\n     * Add job dependency\n     * ","sourceCodeStart":772,"sourceCodeEnd":808,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/Scheduler/Job.php#L772-L808","documentation":"Error \"Priority must be high, normal, or low\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/Scheduler/Job.php:790 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}