aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-02-08 11:52:40 +0100
committerLouis Chemineau <louis@chmn.me>2024-02-08 18:27:44 +0100
commit303e2febc717065581a3e3bdc92e1672bb8253dc (patch)
treec8f88c01fa1e7f93958a6b48bee3aa4bf5525dfb /cron.php
parentf6ed1effbf4bb040ab35c625159ad80caff5e687 (diff)
downloadnextcloud-server-303e2febc717065581a3e3bdc92e1672bb8253dc.tar.gz
nextcloud-server-303e2febc717065581a3e3bdc92e1672bb8253dc.zip
Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobs
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index b651d91242f..4e95481deb6 100644
--- a/cron.php
+++ b/cron.php
@@ -172,7 +172,7 @@ try {
$memoryBefore = memory_get_usage();
$memoryPeakBefore = memory_get_peak_usage();
- $job->execute($jobList, $logger);
+ $job->start($jobList);
$memoryAfter = memory_get_usage();
$memoryPeakAfter = memory_get_peak_usage();
@@ -207,7 +207,7 @@ try {
$job = $jobList->getNext();
if ($job != null) {
$logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']);
- $job->execute($jobList, $logger);
+ $job->start($jobList);
$jobList->setLastJob($job);
}
OC_JSON::success();