lix api changes
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include "signals.hh"
|
||||
#include "state.hh"
|
||||
#include "hydra-build-result.hh"
|
||||
#include "store-api.hh"
|
||||
#include "remote-store.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "hydra-config.hh"
|
||||
@@ -930,20 +930,6 @@ void State::run(BuildID buildOne)
|
||||
}
|
||||
}).detach();
|
||||
|
||||
/* Make sure that old daemon connections are closed even when
|
||||
we're not doing much. */
|
||||
std::thread([&]() {
|
||||
while (true) {
|
||||
sleep(10);
|
||||
try {
|
||||
if (auto remoteStore = getDestStore().dynamic_pointer_cast<RemoteStore>())
|
||||
remoteStore->flushBadConnections();
|
||||
} catch (std::exception & e) {
|
||||
printMsg(lvlError, "connection flush thread: %s", e.what());
|
||||
}
|
||||
}
|
||||
}).detach();
|
||||
|
||||
/* Monitor the database for status dump requests (e.g. from
|
||||
‘hydra-queue-runner --status’). */
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user