diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 2e7ee9d5..71b77f54 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -656,7 +656,12 @@ void State::getQueuedBuilds(Connection & conn, std::shared_ptr store, newRunnable.clear(); nrAdded = 0; - createBuild(build); + try { + createBuild(build); + } catch (Error & e) { + printMsg(lvlError, format("while loading build %1%: %2%") % build->id % e.what()); + continue; // FIXME: retry later? + } /* Add the new runnable build steps to ‘runnable’ and wake up the builder threads. */