mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(TextToImage): Add missing task status update
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
35bf7fc94e
commit
b9985bfd66
1 changed files with 6 additions and 0 deletions
|
|
@ -199,6 +199,12 @@ class Manager implements IManager {
|
|||
}
|
||||
}
|
||||
|
||||
$task->setStatus(Task::STATUS_FAILED);
|
||||
try {
|
||||
$this->taskMapper->update(DbTask::fromPublicTask($task));
|
||||
} catch (Exception $e) {
|
||||
$this->logger->warning('Failed to update database after Text2Image error', ['exception' => $e]);
|
||||
}
|
||||
throw new TaskFailureException('Could not run task');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue