diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-19 00:37:55 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-19 00:37:55 +0200 |
commit | e2aeedb73b4cf872f588231b9aa90edbd4dfea6c (patch) | |
tree | f232076f08c956e98ff071846311ea7693d77e49 /core | |
parent | 5cce140701638aabac9ca692433b45517b741161 (diff) | |
download | nextcloud-server-chore/remove-ijob-execute.tar.gz nextcloud-server-chore/remove-ijob-execute.zip |
chore: Remove deprecated `IJob::execute` methodchore/remove-ijob-execute
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Background/Job.php | 3 | ||||
-rw-r--r-- | core/Command/Background/JobWorker.php | 4 |
2 files changed, 2 insertions, 5 deletions
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('<error>Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database</error>'); 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 |