1212use OCP \AppFramework \Utility \ITimeFactory ;
1313use OCP \IAppConfig ;
1414use OCP \IL10N ;
15+ use OCP \IURLGenerator ;
1516use OCP \SetupCheck \ISetupCheck ;
1617use OCP \SetupCheck \SetupResult ;
1718use OCP \TaskProcessing \IManager ;
@@ -26,6 +27,7 @@ public function __construct(
2627 private readonly IManager $ taskProcessingManager ,
2728 private readonly ITimeFactory $ timeFactory ,
2829 private readonly IAppConfig $ appConfig ,
30+ private readonly IURLGenerator $ url ,
2931 ) {
3032 }
3133
@@ -63,12 +65,14 @@ public function run(): SetupResult {
6365
6466 if ($ lastIteration > 0 ) {
6567 return SetupResult::warning (
66- $ 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 )])
68+ $ 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 )]),
69+ linkToDoc: $ this ->url ->linkToDocs ('admin-ai-pickup-speed ' ),
6770 );
6871 }
6972
7073 return SetupResult::warning (
71- $ this ->l10n ->t ('The Task Processing worker does not seem to be running. It seems it has never run so far. ' )
74+ $ this ->l10n ->t ('The Task Processing worker does not seem to be running. It seems it has never run so far. ' ),
75+ linkToDoc: $ this ->url ->linkToDocs ('admin-ai-pickup-speed ' ),
7276 );
7377 }
7478}
0 commit comments