Skip to content

Commit

Permalink
remove container should not block run and wait
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Apr 11, 2017
1 parent 232f99d commit 6aaaa38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.27b
0.7.27c
2 changes: 1 addition & 1 deletion cluster/calcium/run_and_wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c *calcium) RunAndWait(specs types.Specs, opts *types.DeployOptions) (chan
}

containerJSON, err := container.Inspect()
defer c.removeOneContainer(container, containerJSON)
defer func() { go c.removeOneContainer(container, containerJSON) }()
if err == nil {
ch <- &types.RunAndWaitMessage{ContainerID: message.ContainerID, Data: []byte(fmt.Sprintf("[exitcode] %d", containerJSON.State.ExitCode))}
} else {
Expand Down

0 comments on commit 6aaaa38

Please sign in to comment.