pick jobs from queue with lowest retries first

This commit is contained in:
Oliver Gorwits
2018-02-10 10:49:27 +00:00
parent 72a444488f
commit 160d3f2a05
3 changed files with 96 additions and 34 deletions

View File

@@ -71,7 +71,7 @@ query with a C<backend> host, C<max_deferrals>, and C<retry_after> parameters
=cut
__PACKAGE__->has_many( device_skips => 'App::Netdisco::DB::Result::DeviceSkip',
__PACKAGE__->might_have( device_skips => 'App::Netdisco::DB::Result::DeviceSkip',
sub {
my $args = shift;
return {