fix(TaskProcessing\Manager#setTaskResult): Replace files contents with ID instead of File object

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2024-07-09 13:35:46 +02:00
parent 5c457c64e8
commit 3937cccd4b

View file

@ -689,6 +689,11 @@ class Manager implements IManager {
} else {
$output = $this->validateOutputFileIds($output, $outputShape, $optionalOutputShape);
}
foreach ($output as $key => $value) {
if ($value instanceof Node) {
$output[$key] = $value->getId();
}
}
$task->setOutput($output);
$task->setProgress(1);
$task->setStatus(Task::STATUS_SUCCESSFUL);