mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-12 08:19:41 +00:00
fix successful steps count (#1457)
This commit is contained in:
parent
171aef6bf7
commit
8c08edfb78
1 changed files with 1 additions and 1 deletions
|
@ -836,7 +836,7 @@ class WorkflowService:
|
|||
total_steps = len(workflow_run_steps)
|
||||
# TODO: This is a temporary cost calculation. We need to implement a more accurate cost calculation.
|
||||
# successful steps are the ones that have a status of completed and the total count of unique step.order
|
||||
successful_steps = set(step.order for step in workflow_run_steps if step.status == StepStatus.completed)
|
||||
successful_steps = [step for step in workflow_run_steps if step.status == StepStatus.completed]
|
||||
total_cost = 0.1 * len(successful_steps)
|
||||
return WorkflowRunStatusResponse(
|
||||
workflow_id=workflow.workflow_permanent_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue