diff --git a/src/app/Jobs/CommonJob.php b/src/app/Jobs/CommonJob.php --- a/src/app/Jobs/CommonJob.php +++ b/src/app/Jobs/CommonJob.php @@ -115,6 +115,8 @@ // @phpstan-ignore-next-line if ($this->job) { $this->job->release($delay); + } else { + throw new \Exception("Attempted to release a manually executed job"); } }