fix(Cron): Log when WebCron accessed in system cron mode

Fixese #58470

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2026-02-20 16:44:14 -05:00 committed by GitHub
parent 6664eb397c
commit f0663d5cbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -226,7 +226,7 @@ class CronService {
private function runWeb(string $appMode): void {
if ($appMode === 'cron') {
// Cron is cron :-P
throw new \RuntimeException('Backgroundjobs are using system cron!');
$this->logger->info('WebCron accessed even though backgroundjobs_mode is set to use system cron.', ['app' => 'cron']);
} else {
// Work and success :-)
$job = $this->jobList->getNext();