initial implementatin of new job queue with skip info per job

This commit is contained in:
Oliver Gorwits
2018-04-25 21:43:39 +01:00
parent 5eb443438c
commit 7e1982985c
9 changed files with 187 additions and 26 deletions

View File

@@ -270,11 +270,13 @@ sub jq_complete {
}
sub jq_log {
return schema('netdisco')->resultset('Admin')->search({}, {
prefetch => 'target',
order_by => { -desc => [qw/entered device action/] },
my $filter = shift;
return schema('netdisco')->resultset('Virtual::JobQueue')->search({}, {
join => 'target',
'+columns' => ['target.dns','target.ip'],
bind => [ setting('job_prio')->{'high'}, $filter, $filter ],
rows => 50,
})->with_times->hri->all;
})->hri->all;
}
sub jq_userlog {