Skip to content

Commit

Permalink
Reactivate container removing
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedikinci committed Apr 17, 2022
1 parent 3b1c374 commit 68b2896
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ func (r *runner) jobRunner() error {
}
}

// r.infoLog.Println("Container stopping")
r.infoLog.Println("Container stopping")

// if err := r.cli.ContainerStop(r.ctx, r.containerResponse.ID, nil); err != nil {
// return err
// }
if err := r.cli.ContainerStop(r.ctx, r.containerResponse.ID, nil); err != nil {
return err
}

// r.infoLog.Println("Container stopped")
r.infoLog.Println("Container stopped")

// r.infoLog.Println("Container removing")
r.infoLog.Println("Container removing")

// if err := r.cli.ContainerRemove(r.ctx, r.containerResponse.ID, types.ContainerRemoveOptions{}); err != nil {
// return err
// }
if err := r.cli.ContainerRemove(r.ctx, r.containerResponse.ID, types.ContainerRemoveOptions{}); err != nil {
return err
}

// r.infoLog.Println("Container removed")
r.infoLog.Println("Container removed")

r.infoLog.Println("Job ended")

Expand Down

0 comments on commit 68b2896

Please sign in to comment.