aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Background
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Background')
-rw-r--r--core/Command/Background/Job.php3
-rw-r--r--core/Command/Background/JobWorker.php4
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