$tasks=$this->taskProcessingManager->getTasks(userId:'',scheduleAfter:$this->timeFactory->now()->getTimestamp()-60*60*24*$lastNDays);// userId: '' means no filter, whereas null would mean guest
'Most tasks were successful in the last %n hour.',
'Most tasks were successful in the last %n hours.',
24*$lastNDays
)
);
}else{
returnSetupResult::warning(
$this->l10n->n(
'A lot of tasks failed in the last %n hour. Consider checking the nextcloud log for errors and investigating whether the AI provider apps have been set up correctly.',
'A lot of tasks failed in the last %n hours. Consider checking the nextcloud log for errors and investigating whether the AI provider apps have been set up correctly.',