LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
fix/show_error_on_wf_execution (#531)
Rahul Johny56d5c73c2276
diff --git a/backend/workflow_manager/workflow/views.py b/backend/workflow_manager/workflow/views.pyindex 0a3c451cf..fc6c691c4 100644--- a/backend/workflow_manager/workflow/views.py+++ b/backend/workflow_manager/workflow/views.py@@ -23,6 +23,7 @@ from workflow_manager.workflow.constants import WorkflowKeyfrom workflow_manager.workflow.dto import ExecutionResponsefrom workflow_manager.workflow.enums import SchemaEntity, SchemaTypefrom workflow_manager.workflow.exceptions import (+ InternalException,WorkflowDoesNotExistError,WorkflowGenerationError,WorkflowRegenerationError,@@ -192,6 +193,12 @@ class WorkflowViewSet(viewsets.ModelViewSet):hash_values_of_files=hashes_of_files,include_metadata=include_metadata,)+ if (+ execution_response.execution_status == "ERROR"+ and execution_response.result+ and execution_response.result[0].get("error")+ ):+ raise InternalException(execution_response.result[0].get("error"))return Response(make_execution_response(execution_response),status=status.HTTP_200_OK,