Skip to content

Commit

Permalink
[coconut] Adapt task id table for short UID
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Oct 2, 2020
1 parent 18359fa commit b70744a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coconut/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func ShowEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Com
if printTasks {
_, _ = fmt.Fprintln(o, "")
drawTableShortTaskInfos(tasks,
[]string{fmt.Sprintf("task id (%d tasks)", len(tasks)), "class name", "hostname", "status", "state"},
[]string{fmt.Sprintf("task id (%d)", len(tasks)), "class name", "hostname", "status", "state"},
func(t *pb.ShortTaskInfo) []string {
return []string{
t.GetTaskId(),
Expand Down Expand Up @@ -483,7 +483,7 @@ func GetTasks(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, a
fmt.Fprintln(o, "no tasks running")
} else {
drawTableShortTaskInfos(tasks,
[]string{fmt.Sprintf("task id (%d tasks)", len(tasks)), "class name", "hostname", "locked", "status", "state","PID"},
[]string{fmt.Sprintf("task id (%d)", len(tasks)), "class name", "hostname", "locked", "status", "state","PID"},
func(t *pb.ShortTaskInfo) []string {
return []string{
t.GetTaskId(),
Expand Down Expand Up @@ -520,7 +520,7 @@ func CleanTasks(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command,
fmt.Fprintln(o, "0 tasks killed")
} else {
drawTableShortTaskInfos(response.KilledTasks,
[]string{fmt.Sprintf("task id (%d tasks killed)", len(response.KilledTasks)), "class name", "hostname"},
[]string{fmt.Sprintf("task id (%d killed)", len(response.KilledTasks)), "class name", "hostname"},
func(t *pb.ShortTaskInfo) []string {
return []string{
t.GetTaskId(),
Expand Down

0 comments on commit b70744a

Please sign in to comment.