Skip to content

Commit

Permalink
refactor(cron): Remove deprecated ILogger related methods
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Sep 15, 2024
1 parent 7557768 commit d24ffc8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d24ffc8

Please sign in to comment.