Merge pull request #721 from grahamc/one-by-one

hydra-evaluator: add a 'ONE_AT_A_TIME' evaluator style
This commit is contained in:
Eelco Dolstra
2020-03-04 08:44:43 +01:00
committed by GitHub
5 changed files with 110 additions and 9 deletions

View File

@ -226,7 +226,7 @@ sub updateJobset {
my ($nixExprPath, $nixExprInput) = nixExprPathFromParams $c;
my $enabled = int($c->stash->{params}->{enabled});
die if $enabled < 0 || $enabled > 2;
die if $enabled < 0 || $enabled > 3;
my $shares = int($c->stash->{params}->{schedulingshares} // 1);
error($c, "The number of scheduling shares must be positive.") if $shares <= 0;