Preserve leases needing recovery
This commit is contained in:
@@ -221,7 +221,7 @@ func occupied(s *store.Store, id string, limit int) bool {
|
||||
}
|
||||
n := 0
|
||||
for _, t := range s.Tasks() {
|
||||
if t.State == domain.StateLeased && t.Lease != nil && t.Lease.HarnessID == id {
|
||||
if (t.State == domain.StateLeased || t.State == domain.StateNeedsAttention) && t.Lease != nil && t.Lease.HarnessID == id {
|
||||
n++
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user