aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-12 11:01:46 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-03-12 11:01:46 +0100
commit75751d51de9185982f43e3d72206f1741939dfda (patch)
treed84f8cc60f2c2cf9412fb01f53c8faa788e918da /core/Command
parent9a5272870c5d8fd2d0c59bf9a8f1fe223a1ac2fc (diff)
downloadnextcloud-server-75751d51de9185982f43e3d72206f1741939dfda.tar.gz
nextcloud-server-75751d51de9185982f43e3d72206f1741939dfda.zip
fix: Call execute until it is removed for Job class
Because if an application extends execute it will change behavior without warning otherwise. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Background/Job.php3
1 files changed, 2 insertions, 1 deletions
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('<error>Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database</error>');
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())) {