Skip to content

Commit

Permalink
add two lines of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
haikuoliu committed Apr 19, 2018
1 parent 50d75df commit 2d212de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/engine/task_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ func (mtask *managedTask) handleEventError(containerChange dockerContainerChange
mtask.cfg.AgentPullBehavior == config.OnceAgentPullBehavior {
seelog.Criticalf("Managed task [%s]: Error while pulling container %s, task will fail: %v",
mtask.Arn, container.Name, event.Error)
// The task should be stopped regardless of whether this container is
// essential or non-essential.
mtask.SetDesiredStatus(api.TaskStopped)
mtask.emitTaskEvent(mtask.Task, taskUnableToPullImage)
return false
Expand Down

0 comments on commit 2d212de

Please sign in to comment.