Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

handled both execution and final processing exceptions (#1312)

ali7de67b7eef89
diff --git a/backend/workflow_manager/workflow_v2/file_execution_tasks.py b/backend/workflow_manager/workflow_v2/file_execution_tasks.py
index ee88977d7..fe211a7fd 100644
--- a/backend/workflow_manager/workflow_v2/file_execution_tasks.py
+++ b/backend/workflow_manager/workflow_v2/file_execution_tasks.py
@@ -544,14 +544,14 @@ class FileExecutionTasks:
cls._complete_execution(
workflow_file_execution=workflow_file_execution,
workflow_log=workflow_log,
- error=execution_result.error,
+ error=result.error or execution_result.error,
)
return cls._build_final_result(
workflow_execution=workflow_execution,
workflow_file_execution=workflow_file_execution,
file_hash=file_hash,
- error=execution_result.error,
+ error=result.error or execution_result.error,
result=result,
)