Skip to content

Commit 41f92bc

Browse files
miltalexteo
authored andcommitted
[coconut] Print PID on GetTasks
1 parent 49e259a commit 41f92bc

2 files changed

Lines changed: 245 additions & 191 deletions

File tree

coconut/control/control.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,17 @@ func GetTasks(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, a
528528
fmt.Fprintln(o, "no tasks running")
529529
} else {
530530
drawTableShortTaskInfos(tasks,
531-
[]string{fmt.Sprintf("task id (%d tasks)", len(tasks)), "class name", "hostname", "locked", "status", "state"},
531+
[]string{fmt.Sprintf("task id (%d tasks)", len(tasks)), "class name", "hostname", "locked", "status", "state","PID"},
532532
func(t *pb.ShortTaskInfo) []string {
533533
return []string{
534534
t.GetTaskId(),
535535
t.GetClassName(),
536536
t.GetDeploymentInfo().GetHostname(),
537537
strconv.FormatBool(t.GetLocked()),
538538
t.GetStatus(),
539-
colorState(t.GetState())}
539+
colorState(t.GetState()),
540+
t.GetPid(),
541+
}
540542
}, o)
541543
}
542544

0 commit comments

Comments
 (0)