forked from lix-project/hydra
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:
parent
5c0c7d52a0
commit
08bfff9d13
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue