Skip to content

Commit 90fb4b0

Browse files
committed
[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
1 parent c46119c commit 90fb4b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/task/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,9 +960,10 @@ func (m *Manager) GetTask(id string) *Task {
960960

961961
func (m *Manager) updateTaskState(taskId string, state string) {
962962
taskPtr := m.roster.getByTaskId(taskId)
963-
if taskPtr == nil {
963+
if taskPtr == nil && state != "DONE" {
964964
log.WithField("taskId", taskId).
965965
WithField("state", state).
966+
WithField(infologger.Level, infologger.IL_Support).
966967
Warn("attempted state update of task not in roster")
967968
return
968969
}

0 commit comments

Comments
 (0)