mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 04:10:32 +00:00
should use correct status for killed
This commit is contained in:
parent
8c7d48ebed
commit
2c9d50ccc6
1 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,9 @@ func (s *RPC) Update(c context.Context, id string, state rpc.State) error {
|
|||
if state.ExitCode != 0 || state.Error != "" {
|
||||
proc.State = model.StatusFailure
|
||||
}
|
||||
if state.ExitCode == 137 {
|
||||
proc.State = model.StatusKilled
|
||||
}
|
||||
} else {
|
||||
proc.Started = state.Started
|
||||
proc.State = model.StatusRunning
|
||||
|
|
Loading…
Reference in a new issue