We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe8c3f commit ec8a682Copy full SHA for ec8a682
core/task/manager.go
@@ -953,11 +953,13 @@ func (m *Manager) GetTask(id string) *Task {
953
954
func (m *Manager) updateTaskState(taskId string, state string) {
955
taskPtr := m.roster.getByTaskId(taskId)
956
- if taskPtr == nil && state != "DONE" {
957
- log.WithField("taskId", taskId).
958
- WithField("state", state).
959
- WithField(infologger.Level, infologger.IL_Support).
960
- Warn("attempted state update of task not in roster")
+ if taskPtr == nil {
+ if state != "DONE" {
+ log.WithField("taskId", taskId).
+ WithField("state", state).
+ WithField(infologger.Level, infologger.IL_Support).
961
+ Warn("attempted state update of task not in roster")
962
+ }
963
return
964
}
965
0 commit comments