Skip to content

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

Changed property function name to be more meaningful (#1293)

Praveen Kumar5fef8dcd82f8
diff --git a/backend/workflow_manager/workflow_v2/execution.py b/backend/workflow_manager/workflow_v2/execution.py
index 9c51a2008..469b39497 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.aggregated_usage_cost
if total_cost is not None:
average_cost = round(total_cost / total_files, 5)
diff --git a/backend/workflow_manager/workflow_v2/models/execution.py b/backend/workflow_manager/workflow_v2/models/execution.py
index dccf72207..19d04d9d6 100644
--- a/backend/workflow_manager/workflow_v2/models/execution.py
+++ b/backend/workflow_manager/workflow_v2/models/execution.py
@@ -191,7 +191,7 @@ class WorkflowExecution(BaseModel):
return str(timedelta(seconds=time_in_secs)).split(".")[0]
@property
- def get_aggregated_usage_cost(self) -> float | None:
+ def aggregated_usage_cost(self) -> float | None:
"""Retrieve aggregated cost for the given execution_id.
Returns: