Skip to content

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

Fix for response as PENDING always when the API deployment doesn't ti… (#1148)

Ritwik G2a3a66d693de
diff --git a/backend/workflow_manager/workflow_v2/workflow_helper.py b/backend/workflow_manager/workflow_v2/workflow_helper.py
index f4c8a8582..5e24e3ae4 100644
--- a/backend/workflow_manager/workflow_v2/workflow_helper.py
+++ b/backend/workflow_manager/workflow_v2/workflow_helper.py
@@ -535,6 +535,8 @@ class WorkflowHelper:
task = AsyncResultData(async_result=async_execution)
celery_result = task.to_dict()
task_result = celery_result.get("result")
+ # Fetch the object agian to get the latest status.
+ workflow_execution = WorkflowExecution.objects.get(id=execution_id)
execution_response = ExecutionResponse(
workflow_id,
execution_id,