mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 15:35:51 +00:00
fix datetime diff with timezone issue for workflow metrics log (#1714)
This commit is contained in:
parent
430c6b7851
commit
e2d3d7fec5
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ class WorkflowService:
|
|||
)
|
||||
|
||||
# Track workflow run duration when completed
|
||||
duration_seconds = (datetime.now(UTC) - workflow_run.created_at).total_seconds()
|
||||
duration_seconds = (datetime.now(UTC) - workflow_run.created_at.replace(tzinfo=UTC)).total_seconds()
|
||||
LOG.info(
|
||||
"Workflow run duration metrics",
|
||||
workflow_run_id=workflow_run_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue