From 75751d51de9185982f43e3d72206f1741939dfda Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 12 Mar 2024 11:01:46 +0100 Subject: fix: Call execute until it is removed for Job class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because if an application extends execute it will change behavior without warning otherwise. Signed-off-by: Côme Chilliet --- core/Command/Background/Job.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/Command') diff --git a/core/Command/Background/Job.php b/core/Command/Background/Job.php index 0c64a05e2a7..66cb0ff5cf0 100644 --- a/core/Command/Background/Job.php +++ b/core/Command/Background/Job.php @@ -84,7 +84,8 @@ class Job extends Command { $output->writeln('Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database'); return 1; } - $job->start($this->jobList); + /** Calling execute until it is removed, then will switch to start */ + $job->execute($this->jobList); $job = $this->jobList->getById($jobId); if (($job === null) || ($lastRun !== $job->getLastRun())) { -- cgit v1.2.3