diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-02-06 12:05:20 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-02-08 10:28:29 +0100 |
commit | e78e27187a11d395d12d55bf01f62f95abe48f55 (patch) | |
tree | baeaeebfd175b6aa920d0fdce64e665247bb11ed /core/Command | |
parent | 65981f99bfaa4f05469b32eaf0faa21e3b01d812 (diff) | |
download | nextcloud-server-e78e27187a11d395d12d55bf01f62f95abe48f55.tar.gz nextcloud-server-e78e27187a11d395d12d55bf01f62f95abe48f55.zip |
chore: Delete deprecated internal Job classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Background/Job.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/Background/Job.php b/core/Command/Background/Job.php index b27686a6824..fdfb7484b51 100644 --- a/core/Command/Background/Job.php +++ b/core/Command/Background/Job.php @@ -91,7 +91,7 @@ class Job extends Command { $output->writeln('<info>Job executed!</info>'); $output->writeln(''); - if ($job instanceof \OC\BackgroundJob\TimedJob || $job instanceof \OCP\BackgroundJob\TimedJob) { + if ($job instanceof \OCP\BackgroundJob\TimedJob) { $this->printJobInfo($jobId, $job, $output); } } else { @@ -115,10 +115,10 @@ class Job extends Command { $output->writeln('Job class: ' . get_class($job)); $output->writeln('Arguments: ' . json_encode($job->getArgument())); - $isTimedJob = $job instanceof \OC\BackgroundJob\TimedJob || $job instanceof \OCP\BackgroundJob\TimedJob; + $isTimedJob = $job instanceof \OCP\BackgroundJob\TimedJob; if ($isTimedJob) { $output->writeln('Type: timed'); - } elseif ($job instanceof \OC\BackgroundJob\QueuedJob || $job instanceof \OCP\BackgroundJob\QueuedJob) { + } elseif ($job instanceof \OCP\BackgroundJob\QueuedJob) { $output->writeln('Type: queued'); } else { $output->writeln('Type: job'); |