From 08bfff9d13dff0a7ebe43d9c30c37d797e02eedb Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Tue, 14 Jan 2020 13:34:35 +0100 Subject: [PATCH] hydra-queue-runner: sleep 5s after handling an exception instead of immediately calling `readMachinesFiles` again which could immediately throw another exception again. --- src/hydra-queue-runner/hydra-queue-runner.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index f97a1c95..99a8a811 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -218,6 +218,7 @@ void State::monitorMachinesFile() sleep(30); } catch (std::exception & e) { printMsg(lvlError, format("reloading machines file: %1%") % e.what()); + sleep(5); } } }