소스 검색

Fix background-job:execute command for QueuedJob instances

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v25.0.0beta1
Côme Chilliet 2 년 전
부모
커밋
cc89da26c6
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      core/Command/Background/Job.php

+ 5
- 1
core/Command/Background/Job.php 파일 보기

@@ -85,10 +85,14 @@ class Job extends Command {
}

$job = $this->jobList->getById($jobId);
if ($job === null) {
$output->writeln('<error>Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database</error>');
return 1;
}
$job->execute($this->jobList, $this->logger);
$job = $this->jobList->getById($jobId);

if ($lastRun !== $job->getLastRun()) {
if (($job === null) || ($lastRun !== $job->getLastRun())) {
$output->writeln('<info>Job executed!</info>');
$output->writeln('');


Loading…
취소
저장