From d08cfa48d784dc75bfc59c444780a5a0487506aa Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 12 Aug 2019 17:34:01 +0200 Subject: [PATCH] Add a 'step_started' notification --- src/hydra-queue-runner/hydra-queue-runner.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index cd873d65..acc838c7 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -268,6 +268,9 @@ unsigned int State::createBuildStep(pqxx::work & txn, time_t startTime, BuildID ("insert into BuildStepOutputs (build, stepnr, name, path) values ($1, $2, $3, $4)") (buildId)(stepNr)(output.first)(output.second.path).exec(); + if (status == bsBusy) + txn.exec(fmt("notify step_started, '%d\t%d'", buildId, stepNr)); + return stepNr; }