From 2c9d50ccc610e350cb7c7dc206ad803922cf3e18 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 15 Sep 2017 09:04:21 -0700 Subject: [PATCH] should use correct status for killed --- server/rpc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/rpc.go b/server/rpc.go index c82b09de..973a549f 100644 --- a/server/rpc.go +++ b/server/rpc.go @@ -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