Skip to content

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

UN-2603 [FIX] Fixed condition check for HITL (#1452)

Deepak K26fa15a826de
diff --git a/backend/workflow_manager/endpoint_v2/destination.py b/backend/workflow_manager/endpoint_v2/destination.py
index 0d22f0a40..b83d86214 100644
--- a/backend/workflow_manager/endpoint_v2/destination.py
+++ b/backend/workflow_manager/endpoint_v2/destination.py
@@ -179,10 +179,11 @@ class DestinationConnector(BaseConnector):
logger.info(f"Successfully pushed {file_name} to HITL queue")
return True
- # Otherwise use existing workflow-based HITL logic
# Skip HITL validation if we're using file_history and no execution result is available
- if self.use_file_history:
+ if self.is_api and self.use_file_history:
return False
+
+ # Otherwise use existing workflow-based HITL logic
execution_result = self.get_tool_execution_result()
if WorkflowUtil.validate_db_rule(
execution_result, workflow, file_hash.file_destination