mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 23:59:27 -04:00
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:
parent
6664eb397c
commit
f0663d5cbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue