From a582e624ef74ddb91ddeb336575e7fed562d423c Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 16 Jul 2026 14:20:15 +0200 Subject: [PATCH 1/3] fix(SetupChecks): Link to task processing worker docs Signed-off-by: Marcel Klehr --- .../lib/SetupChecks/TaskProcessingWorkerIsRunning.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php b/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php index 4e5448002b504..a0e2eac84ad3b 100644 --- a/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php +++ b/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php @@ -63,12 +63,14 @@ public function run(): SetupResult { if ($lastIteration > 0) { return SetupResult::warning( - $this->l10n->t('The Task Processing worker does not seem to be running. The last run was at %s.', [date('Y-m-d H:i:s', $lastIteration)]) + $this->l10n->t('The Task Processing worker does not seem to be running. The last run was at %s.', [date('Y-m-d H:i:s', $lastIteration)]), + linkToDoc: 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed' ); } return SetupResult::warning( - $this->l10n->t('The Task Processing worker does not seem to be running. It seems it has never run so far.') + $this->l10n->t('The Task Processing worker does not seem to be running. It seems it has never run so far.'), + linkToDoc: 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed' ); } } From 972cc36c1b0381dd4d46e16beb4220c179c01e13 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 22 Jul 2026 15:35:12 +0200 Subject: [PATCH 2/3] fix: Use url generator to link to docs Signed-off-by: Marcel Klehr --- .../lib/SetupChecks/TaskProcessingWorkerIsRunning.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php b/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php index a0e2eac84ad3b..34d842c2e2f07 100644 --- a/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php +++ b/apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php @@ -12,6 +12,7 @@ use OCP\AppFramework\Utility\ITimeFactory; use OCP\IAppConfig; use OCP\IL10N; +use OCP\IURLGenerator; use OCP\SetupCheck\ISetupCheck; use OCP\SetupCheck\SetupResult; use OCP\TaskProcessing\IManager; @@ -26,6 +27,7 @@ public function __construct( private readonly IManager $taskProcessingManager, private readonly ITimeFactory $timeFactory, private readonly IAppConfig $appConfig, + private readonly IURLGenerator $url, ) { } @@ -64,13 +66,13 @@ public function run(): SetupResult { if ($lastIteration > 0) { return SetupResult::warning( $this->l10n->t('The Task Processing worker does not seem to be running. The last run was at %s.', [date('Y-m-d H:i:s', $lastIteration)]), - linkToDoc: 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed' + linkToDoc: $this->url->linkToDocs('admin-ai-pickup-speed'), ); } return SetupResult::warning( $this->l10n->t('The Task Processing worker does not seem to be running. It seems it has never run so far.'), - linkToDoc: 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed' + linkToDoc: $this->url->linkToDocs('admin-ai-pickup-speed'), ); } } From b6481c1895dadfc0fb0731de9f60bed11fa6c047 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 23 Jul 2026 08:52:29 +0200 Subject: [PATCH 3/3] fix: Fix TaskProcessingWorkerIsRunning setup check tests Signed-off-by: Marcel Klehr --- .../tests/SetupChecks/TaskProcessingWorkerIsRunningTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/settings/tests/SetupChecks/TaskProcessingWorkerIsRunningTest.php b/apps/settings/tests/SetupChecks/TaskProcessingWorkerIsRunningTest.php index 2d2278e5cedfc..430cd3316bf6a 100644 --- a/apps/settings/tests/SetupChecks/TaskProcessingWorkerIsRunningTest.php +++ b/apps/settings/tests/SetupChecks/TaskProcessingWorkerIsRunningTest.php @@ -13,6 +13,7 @@ use OCP\AppFramework\Utility\ITimeFactory; use OCP\IAppConfig; use OCP\IL10N; +use OCP\IURLGenerator; use OCP\SetupCheck\SetupResult; use OCP\TaskProcessing\IManager; use OCP\TaskProcessing\Task; @@ -24,6 +25,7 @@ class TaskProcessingWorkerIsRunningTest extends TestCase { private ITimeFactory&MockObject $timeFactory; private IManager&MockObject $taskProcessingManager; private IAppConfig&MockObject $appConfig; + private IURLGenerator&MockObject $urlGenerator; private TaskProcessingWorkerIsRunning $check; @@ -34,12 +36,14 @@ protected function setUp(): void { $this->timeFactory = $this->getMockBuilder(ITimeFactory::class)->getMock(); $this->taskProcessingManager = $this->getMockBuilder(IManager::class)->getMock(); $this->appConfig = $this->getMockBuilder(IAppConfig::class)->getMock(); + $this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->getMock(); $this->check = new TaskProcessingWorkerIsRunning( $this->l10n, $this->taskProcessingManager, $this->timeFactory, - $this->appConfig + $this->appConfig, + $this->urlGenerator, ); }