Skip to content

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

[FIX] Issue with average cost not being logged (#1292)

Praveen Kumar49cfe041471e
diff --git a/backend/workflow_manager/workflow_v2/execution.py b/backend/workflow_manager/workflow_v2/execution.py
index f90a2babe..9c51a2008 100644
--- a/backend/workflow_manager/workflow_v2/execution.py
+++ b/backend/workflow_manager/workflow_v2/execution.py
@@ -316,7 +316,7 @@ class WorkflowExecutionServiceHelper(WorkflowExecutionService):
def publish_average_cost_log(self, total_files: int):
try:
execution = WorkflowExecution.objects.get(pk=self.execution_id)
- total_cost = execution.get_aggregated_usage_cost()
+ total_cost = execution.get_aggregated_usage_cost
if total_cost is not None:
average_cost = round(total_cost / total_files, 5)