From c64bd8fd85110762d6b3c07449ae4087dcdaef85 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 7 Jul 2026 11:50:10 +0000 Subject: [PATCH] =?UTF-8?q?A=20recorded=20batch=20failure=20carries=20stru?= =?UTF-8?q?ctured=20details=20onto=20the=20sub=5Ftask=20outputs=20?= =?UTF-8?q?=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- domain/tasks/subtasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/domain/tasks/subtasks.py b/domain/tasks/subtasks.py index edb3ee508..a0e2f985c 100644 --- a/domain/tasks/subtasks.py +++ b/domain/tasks/subtasks.py @@ -69,3 +69,5 @@ class SubTask: self.status = SubTaskStatus.FAILED self.job_completed = datetime.now(timezone.utc) self.outputs = {"error": str(error)} + if isinstance(error, SubTaskFailure) and error.details is not None: + self.outputs.update(error.details)