mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-15 17:59:42 +00:00
add duration to WorkflowRunBlock (#3106)
This commit is contained in:
parent
1e315e39cd
commit
9c8ed3a701
2 changed files with 4 additions and 0 deletions
|
@ -489,6 +489,9 @@ def convert_to_workflow_run_block(
|
|||
modified_at=workflow_run_block_model.modified_at,
|
||||
)
|
||||
if task:
|
||||
if task.finished_at and task.started_at:
|
||||
duration = task.finished_at - task.started_at
|
||||
block.duration = duration.total_seconds()
|
||||
block.url = task.url
|
||||
block.navigation_goal = task.navigation_goal
|
||||
block.navigation_payload = task.navigation_payload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue