"Evaluate" command: push the jobset to the front of the eval queue

Don't let hydra-server call hydra-evaluate.  That will probably just
timeout, get killed, etc.
This commit is contained in:
Eelco Dolstra
2013-02-26 16:56:19 +01:00
parent eea3846754
commit d596b58991
4 changed files with 24 additions and 19 deletions

View File

@ -392,21 +392,4 @@ sub news_delete : Chained('admin') Path('news/delete') Args(1) {
}
sub force_eval : Chained('admin') Path('eval') Args(2) {
my ($self, $c, $projectName, $jobsetName) = @_;
my $project = $c->model('DB::Projects')->find($projectName)
or notFound($c, "Project $projectName doesn't exist.");
$c->stash->{project} = $project;
$c->stash->{jobset_} = $project->jobsets->search({name => $jobsetName});
$c->stash->{jobset} = $c->stash->{jobset_}->single
or notFound($c, "Jobset $jobsetName doesn't exist.");
captureStdoutStderr(60, "hydra-evaluator", $projectName, $jobsetName);
$c->res->redirect("/project/$projectName");
}
1;

View File

@ -1,5 +1,6 @@
package Hydra::Helper::CatalystUtils;
use utf8;
use strict;
use Exporter;
use Readonly;