Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions cmd/vela-worker/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ func (w *Worker) exec(index int) error {
if err != nil {
logger.Errorf("unable to destroy build: %v", err)
}

logger.Info("completed build")
}()

logger.Info("creating build")
Expand Down Expand Up @@ -142,14 +144,5 @@ func (w *Worker) exec(index int) error {
return nil
}

logger.Info("destroying build")
// destroy the build with the executor
err = _executor.DestroyBuild(context.Background())
if err != nil {
logger.Errorf("unable to destroy build: %v", err)
}

logger.Info("completed build")

return nil
}