519
if internalExecution.Status != enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING &&
520
internalExecution.Status != enumspb.WORKFLOW_EXECUTION_STATUS_PAUSED {
522
>
executionInfo.ExecutionDuration = durationpb.New(internalExecution.ExecutionDuration)
523
>
executionInfo.HistoryLength = internalExecution.HistoryLength
524
>
executionInfo.HistorySizeBytes = internalExecution.HistorySizeBytes
525
>
executionInfo.StateTransitionCount = internalExecution.StateTransitionCount
526
>
}
527
528
// Workflows created before 1.11 have ExecutionTime set to Unix epoch zero time (1/1/1970) for non-cron/non-retry case.