Skip to content

Commit 1e59950

Browse files
authored
Merge pull request #76 from trickest/fix/completed-status
Don't change status to completed unless the completedDate is available
2 parents d796032 + 211f8a8 commit 1e59950

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/get/get.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ var GetCmd = &cobra.Command{
6161
runs = []types.Run{*run}
6262
}
6363
if runs != nil && len(runs) > 0 && (runs[0].Status == "RUNNING" || runs[0].Status == "COMPLETED") {
64+
if runs[0].Status == "COMPLETED" && runs[0].CompletedDate.IsZero() {
65+
runs[0].Status = "RUNNING"
66+
}
6467
execute.WatchRun(runs[0].ID, "", map[string]output.NodeInfo{}, !watch, &runs[0].Bees, showNodeParams)
6568
return
6669
} else {

0 commit comments

Comments
 (0)