rename failures column to be deferrals

This commit is contained in:
Oliver Gorwits
2017-05-23 08:26:59 +01:00
parent 96ed444bbb
commit eac1857043
3 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ sub _getsome {
status => 'queued',
device => { '-not_in' => $jobs->correlate('skipped')->search({
backend => $fqdn,
-or => [{ failures => { '>=', 10 } },{ '-bool' => 'skipover' }],
-or => [{ deferrals => { '>=', 10 } },{ '-bool' => 'skipover' }],
}, { columns => 'device' })->as_query },
%$where,
}, { order_by => 'random()', rows => $num_slots });