mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Update lib/private/TextProcessing/Manager.php
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
12c558f20a
commit
6fbf430fe3
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ class Manager implements IManager {
|
|||
throw new PreConditionNotMetException('No LanguageModel provider is installed that can handle this task');
|
||||
}
|
||||
$task->setStatus(OCPTask::STATUS_SCHEDULED);
|
||||
[$provider, ] = $this->getPreferredProviders($task);
|
||||
[$provider,] = $this->getPreferredProviders($task);
|
||||
if ($provider instanceof IProviderWithExpectedRuntime) {
|
||||
$completionExpectedAt = new \DateTime('now');
|
||||
$completionExpectedAt->add(new \DateInterval('PT'.$provider->getExpectedRuntime().'S'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue