LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
added ack and forgot in api deployemnt post call also (#897)
ali465dbaae95a4
diff --git a/backend/workflow_manager/workflow_v2/workflow_helper.py b/backend/workflow_manager/workflow_v2/workflow_helper.pyindex 5adb81a7e..3e1e4c80b 100644--- a/backend/workflow_manager/workflow_v2/workflow_helper.py+++ b/backend/workflow_manager/workflow_v2/workflow_helper.py@@ -415,8 +415,9 @@ class WorkflowHelper:f"ExecutionID [{execution.id}] - Task {execution.task_id} acknowledged")- @staticmethod+ @classmethoddef execute_workflow_async(+ cls,workflow_id: str,execution_id: str,hash_values_of_files: dict[str, FileHash],@@ -445,7 +446,7 @@ class WorkflowHelper:}org_schema = UserContext.get_organization_identifier()log_events_id = StateStore.get(Common.LOG_EVENTS_ID)- async_execution = WorkflowHelper.execute_bin.apply_async(+ async_execution: AsyncResult = cls.execute_bin.apply_async(args=[org_schema, # schema_nameworkflow_id, # workflow_id@@ -480,6 +481,10 @@ class WorkflowHelper:workflow_execution.status,result=task_result,)+ # If task is complete, handle acknowledgment and forgetting the+ if async_execution.ready():+ async_execution.forget() # Remove the result from the result backend.+ cls._set_result_acknowledge(workflow_execution)return execution_responseexcept celery_exceptions.TimeoutError:return ExecutionResponse(