Skip to content

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

fix: Pass total file count while calculating usage / cost (#1286)

Chandrasekharan M68fa892289d7
diff --git a/backend/workflow_manager/workflow_v2/execution.py b/backend/workflow_manager/workflow_v2/execution.py
index 9e1376f9e..f90a2babe 100644
--- a/backend/workflow_manager/workflow_v2/execution.py
+++ b/backend/workflow_manager/workflow_v2/execution.py
@@ -299,7 +299,7 @@ class WorkflowExecutionServiceHelper(WorkflowExecutionService):
Returns:
None
"""
- self.publish_average_cost_log(total_files=successful_files)
+ self.publish_average_cost_log(total_files=total_files)
# To not associate final logs with a file execution
self.file_execution_id = None