mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-16 10:40:38 +08:00
don't update phase for already terminated workflow
This commit is contained in:
@@ -143,8 +143,7 @@ func (s *WorkflowServer) AddWorkflowExecutionStatistics(ctx context.Context, req
|
||||
return &empty.Empty{}, err
|
||||
}
|
||||
|
||||
err = client.FinishWorkflowExecutionStatisticViaExitHandler(req.Namespace, req.Uid,
|
||||
req.Statistics.WorkflowTemplateId, phase, workflow.Status.StartedAt.UTC())
|
||||
err = client.FinishWorkflowExecutionStatisticViaExitHandler(req.Namespace, req.Uid, phase, workflow.Status.StartedAt.UTC())
|
||||
|
||||
if err != nil {
|
||||
return &empty.Empty{}, err
|
||||
|
Reference in New Issue
Block a user