From b9985bfd6699034900e0c31f2e245f9b44a5f498 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 26 Oct 2023 11:41:21 +0200 Subject: [PATCH] fix(TextToImage): Add missing task status update Signed-off-by: Marcel Klehr --- lib/private/TextToImage/Manager.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/private/TextToImage/Manager.php b/lib/private/TextToImage/Manager.php index 7af3f37651d..1553fed7545 100644 --- a/lib/private/TextToImage/Manager.php +++ b/lib/private/TextToImage/Manager.php @@ -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'); }