aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/AddAsyncProcessJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Repair/AddAsyncProcessJob.php')
-rw-r--r--lib/private/Repair/AddAsyncProcessJob.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/private/Repair/AddAsyncProcessJob.php b/lib/private/Repair/AddAsyncProcessJob.php
new file mode 100644
index 00000000000..1a471fb993a
--- /dev/null
+++ b/lib/private/Repair/AddAsyncProcessJob.php
@@ -0,0 +1,30 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OC\Repair;
+
+use OC\Async\ForkManager;
+use OC\Config\Lexicon\CoreConfigLexicon;
+use OC\Core\BackgroundJobs\AsyncProcessJob;
+use OCP\BackgroundJob\IJobList;
+use OCP\IAppConfig;
+use OCP\Migration\IOutput;
+use OCP\Migration\IRepairStep;
+
+class AddAsyncProcessJob implements IRepairStep {
+ public function __construct(
+ private IJobList $jobList,
+ ) {
+ }
+
+ public function getName() {
+ return 'Setup AsyncProcess and queue job to periodically manage the feature';
+ }
+
+ public function run(IOutput $output) {
+ $this->jobList->add(AsyncProcessJob::class);
+ }
+}