Fixed issue where dates were not being set on workflow executions

This commit is contained in:
Andrey Melnikov
2020-03-02 15:19:39 -08:00
parent 7e8c40f0b7
commit ea04a661b3
2 changed files with 18 additions and 10 deletions

View File

@@ -453,9 +453,12 @@ func (c *Client) WatchWorkflowExecution(namespace, name string) (<-chan *Workflo
continue
}
workflowWatcher <- &WorkflowExecution{
UID: string(workflow.UID),
Name: workflow.Name,
Manifest: string(manifest),
CreatedAt: workflow.CreationTimestamp.UTC(),
StartedAt: workflow.Status.StartedAt.UTC(),
FinishedAt: workflow.Status.FinishedAt.UTC(),
UID: string(workflow.UID),
Name: workflow.Name,
Manifest: string(manifest),
}
if !workflow.Status.FinishedAt.IsZero() {