This is mostly useful if we need to prioritize (say) a nixos-stable eval that has some critical security bug fix.
MZ63OVKPTSGREE3JSDCJVJY2VQ7FU76ZMTQBBJSRAUOYFJA6UPIAC VHV6GI4L2GEV2PV3AEV4C22O3JB4XUS6WPEBFINYD5CJOBMAESAAC UQA4FMUAWSGCX33ZN5R5UC25QZTJ2X6DMP4L7XDFNMHC5QYHR2CQC UOINKJ2JBCRTZPFTAXDPRJOEUWWPJ43IGVWLRIRLIGHLBMWDOGDQC T273UOB7WVB3NK52EBN65FQR6XP746D3BZM5SOYXEV6NCARIRYOQC U4TD3AIQXBJFFUORTMIC4IHZTVBORRKL2TZ2FSP4G665ECZOEMNAC 6HWHYPSW4Y2QBY3OWAJYEOOVICFFIWSL5OEAU2ZMLD3H4NXXKBOAC sub bump : Chained('eval') PathPart('bump') Args(0) {my ($self, $c) = @_;requireProjectOwner($c, $c->stash->{eval}->project); # FIXME: require admin?my $builds = $c->stash->{eval}->builds->search({ finished => 0 });my $n = $builds->count();$c->model('DB')->schema->txn_do(sub {$builds->update({globalpriority => time()});});$c->flash->{successMsg} = "$n builds have been bumped to the front of the queue.";$c->res->redirect($c->uri_for($c->controller('JobsetEval')->action_for('view'), $c->req->captures));}
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('cancel'), [eval.id]) %]">Cancel all scheduled builds</a></li><li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_aborted'), [eval.id]) %]">Restart all aborted builds</a></li>
[% IF unfinished.size > 0 %]<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('cancel'), [eval.id]) %]">Cancel all scheduled builds</a></li>[% END %][% IF aborted.size > 0 %]<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_aborted'), [eval.id]) %]">Restart all aborted builds</a></li>[% END %][% IF unfinished.size > 0 %]<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('bump'), [eval.id]) %]">Bump builds to front of queue</a></li>[% END %]