diff --git a/cron.php b/cron.php index ed3e72b3d886f..96c1cee38ec11 100644 --- a/cron.php +++ b/cron.php @@ -158,8 +158,7 @@ $memoryBefore = memory_get_usage(); $memoryPeakBefore = memory_get_peak_usage(); - /** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */ - $job->execute($jobList); + $job->start($jobList); $timeAfter = time(); $memoryAfter = memory_get_usage(); @@ -212,8 +211,7 @@ $job = $jobList->getNext(); if ($job != null) { $logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']); - /** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */ - $job->execute($jobList); + $job->start($jobList); $jobList->setLastJob($job); } OC_JSON::success();