Files
Rodrigo ZhouandGitHub cbdbb69a08 Populate ExecutionDuration in WorkflowExecutionInfo (#5651)
## What changed?
<!-- Describe what has changed in this PR -->
Added a util in mutable state to calculate workflow execution duration
and populate `ExecutionDuration` in `WorkflowExecutionInfo`.

## Why?
<!-- Tell your future self why have you made these changes -->
Added `ExecutionDuration` to `WorkflowExecutionInfo` so UI won't have to
do it, and have a consistent value across the stack.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Added unit tests.

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
No.
2024-04-08 12:40:28 -05:00
..