Skip to content

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

update pipeline along with execution during no file to execute (#1351)

ali81967fc8eb04
diff --git a/backend/workflow_manager/workflow_v2/workflow_helper.py b/backend/workflow_manager/workflow_v2/workflow_helper.py
index dc98addbd..118b986d1 100644
--- a/backend/workflow_manager/workflow_v2/workflow_helper.py
+++ b/backend/workflow_manager/workflow_v2/workflow_helper.py
@@ -163,6 +163,12 @@ class WorkflowHelper:
workflow_execution.update_execution(
status=ExecutionStatus.COMPLETED,
)
+ PipelineUtils.update_pipeline_status(
+ pipeline_id=pipeline_id, workflow_execution=workflow_execution
+ )
+ logger.info(
+ f"Updated execution {workflow_execution.id} and pipeline {pipeline_id} status to COMPLETED"
+ )
return
batches = cls.get_file_batches(input_files=input_files)