diff --git a/agent/algorithm/logging.go b/agent/algorithm/logging.go index e1289511..4836f0e9 100644 --- a/agent/algorithm/logging.go +++ b/agent/algorithm/logging.go @@ -17,9 +17,9 @@ var ( ) const ( - bufSize = 1024 - algorithmRun = "AlgorithmRun" - errorStatus = "Error" + bufSize = 1024 + algorithmRun = "AlgorithmRun" + warningStatus = "Warning" ) type Stdout struct { @@ -70,7 +70,7 @@ func (s *Stderr) Write(p []byte) (n int, err error) { s.Logger.Error(string(buf[:n])) } - if err := s.EventSvc.SendEvent(algorithmRun, errorStatus, json.RawMessage{}); err != nil { + if err := s.EventSvc.SendEvent(algorithmRun, warningStatus, json.RawMessage{}); err != nil { return len(p), err } diff --git a/agent/state.go b/agent/state.go index cafee0b8..a6b2192d 100644 --- a/agent/state.go +++ b/agent/state.go @@ -33,7 +33,7 @@ const ( Ready Completed Terminated - Error + Warning ) type event uint8 diff --git a/agent/status_string.go b/agent/status_string.go index 0b19bb19..a2fdf1bb 100644 --- a/agent/status_string.go +++ b/agent/status_string.go @@ -13,12 +13,12 @@ func _() { _ = x[Ready-2] _ = x[Completed-3] _ = x[Terminated-4] - _ = x[Error-5] + _ = x[Warning-5] } -const _Status_name = "IdleStateInProgressReadyCompletedTerminatedError" +const _Status_name = "IdleStateInProgressReadyCompletedTerminatedWarning" -var _Status_index = [...]uint8{0, 9, 19, 24, 33, 43, 48} +var _Status_index = [...]uint8{0, 9, 19, 24, 33, 43, 50} func (i Status) String() string { if i >= Status(len(_Status_index)-1) {