diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-02-06 14:04:39 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-02-08 10:28:29 +0100 |
commit | b105603fd1133c9d64d712c6c97139ff78f6503d (patch) | |
tree | 3135dc32dda70586a6a96d8dcd880c2deb2eab31 /cron.php | |
parent | e78e27187a11d395d12d55bf01f62f95abe48f55 (diff) | |
download | nextcloud-server-b105603fd1133c9d64d712c6c97139ff78f6503d.tar.gz nextcloud-server-b105603fd1133c9d64d712c6c97139ff78f6503d.zip |
chore: Remove last uses of IJob::execute method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -154,7 +154,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(); @@ -189,7 +189,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(); |