Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Apr 8, 2024
1 parent 7bce37c commit fbef4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func (m *Manager) postpone(ready *model.Task, list []model.Task) (p bool, caused
kinds: m.kinds,
},
}

for i := range list {
other := &list[i]
if ready.ID == other.ID {
Expand All @@ -280,6 +279,7 @@ func (m *Manager) postpone(ready *model.Task, list []model.Task) (p bool, caused
}

// escalate priority.
// prevents priority inversions.
func (m *Manager) escalate(ready, caused *model.Task) {
if ready.Priority <= caused.Priority {
return
Expand Down

0 comments on commit fbef4c9

Please sign in to comment.