aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-02-06 14:04:39 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-02-08 10:28:29 +0100
commitb105603fd1133c9d64d712c6c97139ff78f6503d (patch)
tree3135dc32dda70586a6a96d8dcd880c2deb2eab31 /cron.php
parente78e27187a11d395d12d55bf01f62f95abe48f55 (diff)
downloadnextcloud-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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index 9a3b6297d80..e24219bb790 100644
--- a/cron.php
+++ b/cron.php
@@ -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();