1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Destroy steps after they are done (#2681)

Co-authored-by: 6543 <m.huber@kithara.com>
This commit is contained in:
Anbraten
2023-11-01 09:35:11 +01:00
committed by GitHub
parent 902877690d
commit 4198c447fb
6 changed files with 58 additions and 10 deletions

View File

@@ -274,6 +274,10 @@ func (r *Runtime) exec(step *backend.Step) (*backend.State, error) {
return nil, err
}
if err := r.engine.DestroyStep(r.ctx, step, r.taskUUID); err != nil {
return nil, err
}
if waitState.OOMKilled {
return waitState, &OomError{
Name: step.Name,