Mark builds as busy
[?]
Jun 9, 2015, 12:31 PM
FQQRJUO4C7655SFAKPRPILALVEVRQSIIVBLMQUFPODUBXPIMWYSACDependencies
- [2]
5AIYUMTBBasic remote building - [3]
NJJ7H64SVery basic multi-threaded queue runner - [4]
ENXUSMSVMake concurrency more robust - [5]
YZAI5GQUImplement a database connection pool - [6]
62MQPRXCPass null values to libpqxx properly - [7]
24BMQDZAStart of single-process hydra-queue-runner
Change contents
- replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 237
void markActiveBuildStepsAsAborted(time_t stopTime);void clearBusy(time_t stopTime); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 292
printMsg(lvlError, "clearing active build steps...");markActiveBuildStepsAsAborted(time(0));printMsg(lvlError, "clearing active builds / build steps...");clearBusy(time(0)); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 343
void State::markActiveBuildStepsAsAborted(time_t stopTime)void State::clearBusy(time_t stopTime) - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 351
txn.exec("update Builds set busy = 0 where finished = 0 and busy = 1"); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 468
("update Builds set finished = 1, buildStatus = $2, startTime = $3, stopTime = $3, errorMsg = $4 where id = $1")("update Builds set finished = 1, busy = 0, buildStatus = $2, startTime = $3, stopTime = $3, errorMsg = $4 where id = $1") - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 824
building. */building. Also, mark the selected build as busy. */ - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 832
txn.parameterized("update Builds set busy = 1 where id = $1")(build->id).exec(); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 904
("update Builds set finished = 1, isCachedBuild = 0, buildStatus = $2, startTime = $3, stopTime = $4 where id = $1")("update Builds set finished = 1, busy = 0, isCachedBuild = 0, buildStatus = $2, startTime = $3, stopTime = $4 where id = $1") - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 939
("update Builds set finished = 1, buildStatus = $2, startTime = $3, stopTime = $4, size = $5, closureSize = $6, releaseName = $7, isCachedBuild = $8 where id = $1")("update Builds set finished = 1, busy = 0, buildStatus = $2, startTime = $3, stopTime = $4, size = $5, closureSize = $6, releaseName = $7, isCachedBuild = $8 where id = $1") - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 971
markActiveBuildStepsAsAborted(0);clearBusy(0);