nextcloud/lib/private/Repair/AddCleanupBackgroundJobsJob.php
Benjamin Gaussorgues 60ce92a697
feat(utils): add getter for serverid with proper default
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-12 13:53:10 +02:00

33 lines
699 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Repair;
use OC\Core\BackgroundJobs\CleanupBackgroundJobsJob;
use OCP\BackgroundJob\IJobList;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
use Override;
class AddCleanupBackgroundJobsJob implements IRepairStep {
public function __construct(
private readonly IJobList $jobList,
) {
}
#[\Override]
public function getName(): string {
return 'Cleanup completed background jobs';
}
#[Override]
public function run(IOutput $output): void {
$this->jobList->add(CleanupBackgroundJobsJob::class);
}
}