/queue-runner-status: Include info about temporarily disabled machines

This commit is contained in:
Eelco Dolstra 2016-03-22 16:54:06 +01:00
parent 1332463b02
commit 0aecd65e59

View file

@ -595,6 +595,11 @@ void State::dumpStatus(Connection & conn, bool log)
nested2.attr("avgStepTime", (float) s->totalStepTime / s->nrStepsDone);
nested2.attr("avgStepBuildTime", (float) s->totalStepBuildTime / s->nrStepsDone);
}
auto info(m->state->connectInfo.lock());
nested2.attr("disabledUntil", std::chrono::system_clock::to_time_t(info->disabledUntil));
nested2.attr("lastFailure", std::chrono::system_clock::to_time_t(info->lastFailure));
nested2.attr("consecutiveFailures", info->consecutiveFailures);
}
}