diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index ce725592..2e7ee9d5 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -1253,7 +1253,7 @@ bool State::doBuildStep(std::shared_ptr store, Step::ptr step, build2->finishedInDB) continue; createBuildStep(txn, 0, build2, step, machine->sshName, - buildStepStatus, result.errorMsg, build->id); + buildStepStatus, result.errorMsg, build == build2 ? 0 : build->id); } if (!cachedFailure)