Keep machine stats even when a machine is removed from the machines file
This is important for the Hydra provisioner, since it needs to be able to see whether a disabled machine still has jobs running on it.
This commit is contained in:
@ -89,6 +89,7 @@ system_time State::doDispatch()
|
||||
auto machines_(machines.lock());
|
||||
for (auto & m : *machines_) {
|
||||
auto info(m.second->state->connectInfo.lock());
|
||||
if (!m.second->enabled) continue;
|
||||
if (info->consecutiveFailures && info->disabledUntil > now) {
|
||||
if (info->disabledUntil < sleepUntil)
|
||||
sleepUntil = info->disabledUntil;
|
||||
|
Reference in New Issue
Block a user