Keep machine stats even when a machine is removed from the machines file
[?]
Sep 2, 2015, 11:31 AM
6IB23Y3Y7N7XYJRSLILYIFAEMZD5WE7YEOGCGXR3G5AQPRP52VIQCDependencies
- [2]
4I2HF4L3Unindent - [3]
5AIYUMTBBasic remote building - [4]
SODOV2CMAutomatically reload $NIX_REMOTE_SYSTEMS when it changes - [*]
MHVIT4JYSplit hydra-queue-runner.cc more - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
PLOZBRTRAdd command ‘hydra-queue-runner --status’ to show current status - [*]
HJOEIMLRRefactor
Change contents
- edit in src/hydra-queue-runner/dispatcher.cc at line 92
if (!m.second->enabled) continue; - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 77
if (newMachines.find(m.first) == newMachines.end())if (newMachines.find(m.first) == newMachines.end()) { - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 79
/* Add a disabled Machine object to make sure stats aremaintained. */auto machine = std::make_shared<Machine>(*(m.second));machine->enabled = false;newMachines[m.first] = machine;} - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 498
nested2.attr("enabled", m->enabled); - edit in src/hydra-queue-runner/state.hh at line 203[9.3325][9.3325]
bool enabled{true};