Skip to content

Commit 9989e6c

Browse files
committed
Get exact build start/stop times from the remote
1 parent f608166 commit 9989e6c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/hydra-queue-runner/build-remote.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,14 @@ void State::buildRemote(ref<Store> destStore,
299299
if (GET_PROTOCOL_MINOR(remoteVersion) >= 3) {
300300
result.timesBuilt = readInt(from);
301301
result.isNonDeterministic = readInt(from);
302+
auto start = readInt(from);
303+
auto stop = readInt(from);
304+
if (start && start) {
305+
/* Note: this represents the duration of a single
306+
round, rather than all rounds. */
307+
result.startTime = start;
308+
result.stopTime = stop;
309+
}
302310
}
303311
switch ((BuildResult::Status) res) {
304312
case BuildResult::Built:

0 commit comments

Comments
 (0)