From 0aecd65e59bfde99537c1d454b2f50779364a088 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 22 Mar 2016 16:54:06 +0100 Subject: [PATCH] /queue-runner-status: Include info about temporarily disabled machines --- src/hydra-queue-runner/hydra-queue-runner.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 3cea6d6c..b1842523 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -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); } }