a report to show SNMP failures

This commit is contained in:
Oliver Gorwits
2017-05-23 20:09:05 +01:00
parent 3d136a54de
commit d8d082b30e
4 changed files with 60 additions and 1 deletions

View File

@@ -41,7 +41,9 @@ sub _getsome {
my $jobs = schema('netdisco')->resultset('Admin');
my $rs = $jobs->search({
status => 'queued',
device => { '-not_in' => $jobs->skipped->columns('device')->as_query },
device => { '-not_in' =>
$jobs->skipped($fqdn, setting('workers')->{'max_deferrals'})
->columns('device')->as_query },
%$where,
}, { order_by => 'random()', rows => $num_slots });