diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 02918fc0..5f7bbd16 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -99,10 +99,7 @@ sub status_GET { my ($self, $c) = @_; $self->status_ok( $c, - entity => [ $c->model('DB::BuildSteps')->search( - { 'me.busy' => 1, 'build.finished' => 0, 'build.busy' => 1 }, - { order_by => [ 'machine' ], join => [ 'build' ] } - ) ] + entity => [$c->model('DB::Builds')->search({finished => 0, busy => 1}, { order_by => ["priority DESC", "id"]})] ); } diff --git a/src/root/queue.tt b/src/root/queue.tt index 43f0a090..202ec81a 100644 --- a/src/root/queue.tt +++ b/src/root/queue.tt @@ -1,9 +1,9 @@ [% WRAPPER layout.tt title="Queue" %] [% PROCESS common.tt %] -[% IF queue.size == 0 %] +[% IF resource.size == 0 %] -
The queue is empty.
+Machine | Job | Type | Build | Step | What | Since |
---|---|---|---|---|---|---|
[% IF step.machine; step.machine.match('@(.*)').0; ELSE; 'localhost'; END %] | -[% INCLUDE renderFullJobName project = step.build.project.name jobset = step.build.jobset.name job = step.build.job.name %] | -[% step.system %] | -[% step.build.id %] | -[% step.stepnr %] | -[% step.drvpath.match('-(.*)').0 %] | -[% INCLUDE renderDuration duration = curTime - step.starttime %] | -