hydra-queue-runner: Tweaked the selection method
[?]
Sep 21, 2013, 7:54 PM
MMUBEIGVTTY7OESMGVEOL7EC7HNTSGFIIOC5C3UHKVFYHJ75EMVACDependencies
- [2]
GEADFVZ5hydra-queue-runner: Improved scheduling - [3]
YEXD7CBKFix findBuildDependencyInQueue - [4]
X3YLTWJAhydra-queue-runner: Cache the lookup of time spent per jobset - [5]
OV7F5M3EMerge branch 'queue-17' - [6]
TFLAR4KAhydra-queue-runner: Start as many builds as possible on each iteration - [*]
7YBYT2LQ
Change contents
- replacement in src/script/hydra-queue-runner at line 148
my $share = $jobset->schedulingshares;my $delta = ($share / $totalShares) - ($duration / $totalWindowSize);my $share = $jobset->schedulingshares || 1; # prevent division by zeromy $used = $timeSpent / ($totalWindowSize * ($share / $totalShares)); - replacement in src/script/hydra-queue-runner at line 151
#printf STDERR "%s:%s: %d s, %.3f%%, allowance = %.3f%%\n", $jobset->get_column('project'), $jobset->name, $duration, $duration / $totalWindowSize, $delta;#printf STDERR "%s:%s: %d s, total used = %.2f%%, share used = %.2f%%\n", $jobset->get_column('project'), $jobset->name, $timeSpent, $timeSpent / $totalWindowSize * 100, $used * 100; - replacement in src/script/hydra-queue-runner at line 153
push @res, { jobset => $jobset, delta => $delta };push @res, { jobset => $jobset, used => $used }; - replacement in src/script/hydra-queue-runner at line 156
foreach my $r (sort { $b->{delta} <=> $a->{delta} } @res) {foreach my $r (sort { $a->{used} <=> $b->{used} } @res) { - replacement in src/script/hydra-queue-runner at line 176
printf STDERR "starting build %d (%s:%s:%s) on %s (jobset allowance = %.3f%%)\n",$build->id, $build->project->name, $build->jobset->name, $build->job->name, $build->system, $r->{delta};printf STDERR "starting build %d (%s:%s:%s) on %s; jobset at %.2f%% of its share\n",$build->id, $build->project->name, $build->jobset->name, $build->job->name, $build->system, $r->{used} * 100;