From 90fb4b0c4ceacbf9cd817f594054b28771678e1f Mon Sep 17 00:00:00 2001 From: Piotr Konopka Date: Fri, 10 Jan 2025 14:56:08 +0100 Subject: [PATCH] [core] do not warn about tasks not in roster when it's expected When scheduling a task kill, we remove it from roster. Thus, when we receive a task state DONE update, there is typically nothing to warn about. OCTRL-940 --- core/task/manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/task/manager.go b/core/task/manager.go index d04964f2..a97fee61 100644 --- a/core/task/manager.go +++ b/core/task/manager.go @@ -960,9 +960,10 @@ func (m *Manager) GetTask(id string) *Task { func (m *Manager) updateTaskState(taskId string, state string) { taskPtr := m.roster.getByTaskId(taskId) - if taskPtr == nil { + if taskPtr == nil && state != "DONE" { log.WithField("taskId", taskId). WithField("state", state). + WithField(infologger.Level, infologger.IL_Support). Warn("attempted state update of task not in roster") return }