hydra-queue-runner: sleep 5s after handling an exception

instead of immediately calling `readMachinesFiles` again which could
immediately throw another exception again.
This commit is contained in:
Bas van Dijk 2020-01-14 13:34:35 +01:00
parent 5c0c7d52a0
commit 08bfff9d13

View file

@ -218,6 +218,7 @@ void State::monitorMachinesFile()
sleep(30); sleep(30);
} catch (std::exception & e) { } catch (std::exception & e) {
printMsg(lvlError, format("reloading machines file: %1%") % e.what()); printMsg(lvlError, format("reloading machines file: %1%") % e.what());
sleep(5);
} }
} }
} }