forked from lix-project/hydra
Merge pull request #497 from dtzWill/fix/no-skip-buildid-forward
queue-monitor: never move lastBuildId forward without processing jobs.
This commit is contained in:
commit
5ee74dd3a0
|
@ -49,7 +49,7 @@ void State::queueMonitorLoop()
|
|||
conn->get_notifs();
|
||||
|
||||
if (auto lowestId = buildsAdded.get()) {
|
||||
lastBuildId = std::stoi(*lowestId) - 1;
|
||||
lastBuildId = std::min(lastBuildId, static_cast<unsigned>(std::stoul(*lowestId) - 1));
|
||||
printMsg(lvlTalkative, "got notification: new builds added to the queue");
|
||||
}
|
||||
if (buildsRestarted.get()) {
|
||||
|
|
Loading…
Reference in a new issue