Skip to content

Commit b52f397

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 0a82858 commit b52f397

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/task/manager.go

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

954954
func (m *Manager) updateTaskState(taskId string, state string) {
955955
taskPtr := m.roster.getByTaskId(taskId)
956-
if taskPtr == nil {
956+
if taskPtr == nil && state != "DONE" {
957957
log.WithField("taskId", taskId).
958958
WithField("state", state).
959+
WithField(infologger.Level, infologger.IL_Support).
959960
Warn("attempted state update of task not in roster")
960961
return
961962
}

0 commit comments

Comments
 (0)