Revert: Don't stop JobContainer on failure (#1041)
This commit is contained in:
parent
1e92d87b75
commit
4d7107161e
2 changed files with 4 additions and 6 deletions
|
@ -53,15 +53,14 @@ func newJobExecutor(info jobInfo) common.Executor {
|
|||
}
|
||||
|
||||
steps = append(steps, func(ctx context.Context) error {
|
||||
err := info.stopContainer()(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
jobError := common.JobError(ctx)
|
||||
if jobError != nil {
|
||||
info.result("failure")
|
||||
} else {
|
||||
err := info.stopContainer()(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
info.result("success")
|
||||
}
|
||||
|
||||
|
|
|
@ -103,7 +103,6 @@ func TestNewJobExecutor(t *testing.T) {
|
|||
executedSteps: []string{
|
||||
"startContainer",
|
||||
"step1",
|
||||
"stopContainer",
|
||||
"interpolateOutputs",
|
||||
"closeContainer",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue