Set finishedInDB in a few more places
This commit is contained in:
parent
47367451c7
commit
92ea800cfb
|
@ -532,6 +532,7 @@ void State::getQueuedBuilds(Connection & conn, std::shared_ptr<StoreAPI> store,
|
||||||
(time(0))
|
(time(0))
|
||||||
("derivation was garbage-collected prior to build").exec();
|
("derivation was garbage-collected prior to build").exec();
|
||||||
txn.commit();
|
txn.commit();
|
||||||
|
build->finishedInDB = true;
|
||||||
nrBuildsDone++;
|
nrBuildsDone++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -609,6 +610,7 @@ void State::getQueuedBuilds(Connection & conn, std::shared_ptr<StoreAPI> store,
|
||||||
(now)
|
(now)
|
||||||
(buildStatus != bsUnsupported ? 1 : 0).exec();
|
(buildStatus != bsUnsupported ? 1 : 0).exec();
|
||||||
txn.commit();
|
txn.commit();
|
||||||
|
build->finishedInDB = true;
|
||||||
nrBuildsDone++;
|
nrBuildsDone++;
|
||||||
badStep = true;
|
badStep = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue