By default, show the first 250 jobs only

This is particularly useful for the Nixpkgs jobsets, which now have
~24K jobs.
This commit is contained in:
Eelco Dolstra
2013-08-28 11:10:40 +00:00
parent 10d959a9ff
commit 9002b69c2d
2 changed files with 16 additions and 5 deletions

View File

@ -199,7 +199,10 @@ sub job_status_tab : Chained('jobsetChain') PathPart('job-status-tab') Args(0) {
}
$c->stash->{evals} = $evals;
$c->stash->{jobs} = [sort (keys %jobs)];
my @jobs = sort (keys %jobs);
$c->stash->{nrJobs} = scalar @jobs;
splice @jobs, 250 if $c->stash->{filter} eq "";
$c->stash->{jobs} = [@jobs];
}