From e2aeedb73b4cf872f588231b9aa90edbd4dfea6c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 19 Sep 2024 00:37:55 +0200 Subject: chore: Remove deprecated `IJob::execute` method Signed-off-by: Ferdinand Thiessen --- core/Command/Background/Job.php | 3 +-- core/Command/Background/JobWorker.php | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/Command/Background/Job.php b/core/Command/Background/Job.php index 7fa005cf231..617eeac938c 100644 --- a/core/Command/Background/Job.php +++ b/core/Command/Background/Job.php @@ -67,8 +67,7 @@ class Job extends Command { $output->writeln('Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database'); return 1; } - /** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */ - $job->execute($this->jobList); + $job->start($this->jobList); $job = $this->jobList->getById($jobId); if (($job === null) || ($lastRun !== $job->getLastRun())) { diff --git a/core/Command/Background/JobWorker.php b/core/Command/Background/JobWorker.php index 8289021887b..a2da18440a2 100644 --- a/core/Command/Background/JobWorker.php +++ b/core/Command/Background/JobWorker.php @@ -125,9 +125,7 @@ class JobWorker extends JobBase { $this->printJobInfo($job->getId(), $job, $output); } - /** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */ - $job->execute($this->jobList); - + $job->start($this->jobList); $output->writeln('Job ' . $job->getId() . ' has finished', OutputInterface::VERBOSITY_VERBOSE); // clean up after unclean jobs -- cgit v1.2.3