Adding a task event for setup

This commit is contained in:
Diptanu Choudhury
2017-02-09 17:40:13 -08:00
committed by Alex Dadgar
parent 5f8e0bca6b
commit c80bdd9f5f
4 changed files with 18 additions and 0 deletions

View File

@@ -280,6 +280,8 @@ func (c *AllocStatusCommand) outputTaskStatus(state *api.TaskState) {
// Build up the description based on the event type.
var desc string
switch event.Type {
case api.TaskSetup:
desc = event.Message
case api.TaskStarted:
desc = "Task started by client"
case api.TaskReceived: