Skip to content

Commit

Permalink
fix estimated run time
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Oct 14, 2024
1 parent c6b4163 commit c9d5d87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jobflow_remote/jobs/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ def estimated_run_time(self) -> Optional[float]:
The estimated run time in seconds.
"""
if self.start_time:
return (
datetime.now(tz=self.start_time.tzinfo) - self.start_time
).total_seconds()
return (datetime.utcnow() - self.start_time).total_seconds()

return None

Expand Down

0 comments on commit c9d5d87

Please sign in to comment.