queue-runner: track jobsets by ID
[?]
Jan 9, 2022, 1:58 PM
WWOHRICQJPZ6SENRQWZJV7HNMVTLY2TAEIJYHWRQCZSH2R4UEKKQCDependencies
- [2]
WV4SSAIYBuild against nix-master - [3]
DKR2GXSAUpdate libpqxx usage to move away from deprecated API interactions. - [4]
U55WNIDPAbort unsupported build steps - [5]
HJOEIMLRRefactor - [6]
T5BIOVJEAdd support for tracking custom metrics - [7]
MHVIT4JYSplit hydra-queue-runner.cc more - [8]
IK2UBDAURevive jobset scheduling - [9]
ACBS7C6Qhydra-queue-runner: Detect changes to the scheduling shares - [10]
WE5Q2NVIAllow build to be bumped to the front of the queue via the web interface - [11]
UPNGFCXGFor completeness, re-implement meta.schedulingPriority - [12]
ZK76B5ZZLoad the queue in order of global priority
Change contents
- replacement in src/hydra-queue-runner/queue-monitor.cc at line 99
("select id, project, jobset, job, drvPath, maxsilent, timeout, timestamp, globalPriority, priority from Builds ""where id > $1 and finished = 0 order by globalPriority desc, id",("select builds.id, builds.jobset_id, jobsets.project as project, ""jobsets.name as jobset, job, drvPath, maxsilent, timeout, timestamp, ""globalPriority, priority from Builds ""inner join jobsets on builds.jobset_id = jobsets.id ""where builds.id > $1 and finished = 0 order by globalPriority desc, builds.id", - edit in src/hydra-queue-runner/queue-monitor.cc at line 116
build->jobsetId = row["jobset_id"].as<int>(); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 125
build->jobset = createJobset(txn, build->projectName, build->jobsetName);build->jobset = createJobset(txn, build->projectName, build->jobsetName, build->jobsetId); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 576
const std::string & projectName, const std::string & jobsetName)const std::string & projectName, const std::string & jobsetName, const int & jobsetID) - replacement in src/hydra-queue-runner/queue-monitor.cc at line 587
("select schedulingShares from Jobsets where project = $1 and name = $2",projectName,jobsetName);("select schedulingShares from Jobsets where id = $1",jobsetID); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 599
"where s.startTime is not null and s.stopTime > $1 and project = $2 and jobset = $3","where s.startTime is not null and s.stopTime > $1 and jobset_id = $2", - replacement in src/hydra-queue-runner/queue-monitor.cc at line 601
projectName,jobsetName);jobsetID); - edit in src/hydra-queue-runner/state.hh at line 126
int jobsetId; - replacement in src/hydra-queue-runner/state.hh at line 493
const std::string & projectName, const std::string & jobsetName);const std::string & projectName, const std::string & jobsetName, const int & jobsetID);