Skip to content

Commit 5cbba3a

Browse files
authored
Merge pull request #58473 from nextcloud/jtr/fix-58470
2 parents 974c82a + f0663d5 commit 5cbba3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Service/CronService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private function runCli(string $appMode, ?array $jobClasses): void {
226226
private function runWeb(string $appMode): void {
227227
if ($appMode === 'cron') {
228228
// Cron is cron :-P
229-
throw new \RuntimeException('Backgroundjobs are using system cron!');
229+
$this->logger->info('WebCron accessed even though backgroundjobs_mode is set to use system cron.', ['app' => 'cron']);
230230
} else {
231231
// Work and success :-)
232232
$job = $this->jobList->getNext();

0 commit comments

Comments
 (0)