workflow phase, start/finish time

This commit is contained in:
rushtehrani
2020-02-12 09:42:24 -08:00
committed by Andrey Melnikov
parent 3cb6904725
commit d19df434a0
6 changed files with 142 additions and 81 deletions

View File

@@ -22,10 +22,13 @@ func NewWorkflowServer(resourceManager *manager.ResourceManager) *WorkflowServer
func apiWorkflow(wf *model.Workflow) (workflow *api.Workflow) {
workflow = &api.Workflow{
CreatedAt: wf.CreatedAt.UTC().Format(time.RFC3339),
Name: wf.Name,
Uid: wf.UID,
Manifest: wf.Manifest,
CreatedAt: wf.CreatedAt.Format(time.RFC3339),
Name: wf.Name,
Uid: wf.UID,
Phase: string(wf.Phase),
StartedAt: wf.CreatedAt.Format(time.RFC3339),
FinishedAt: wf.FinishedAt.Format(time.RFC3339),
Manifest: wf.Manifest,
}
if wf.WorkflowTemplate != nil {