chore: Remove deprecated IJob::execute method

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen
2024-09-19 00:37:55 +02:00
parent ccff168960
commit 89896b1d89
7 changed files with 18 additions and 71 deletions
+2 -4
View File
@@ -171,8 +171,7 @@ Options:
echo 'Starting job ' . $jobDetails . PHP_EOL;
}
/** @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();
@@ -237,8 +236,7 @@ Options:
$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();