fix(TextToImage): Add missing task status update

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-10-26 11:41:21 +02:00
parent 35bf7fc94e
commit b9985bfd66

View file

@ -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');
}