line |
true |
false |
branch |
21
|
0 |
4 |
@$ids ? : |
|
4 |
3 |
unless @$ids |
31
|
38 |
199 |
unless my $job = $self->_try($id, $options) |
66
|
25 |
413 |
unless my $job = $jobs->{$id} |
106
|
36 |
115 |
$id ? : |
107
|
115 |
36 |
unless ($worker) |
118
|
30 |
0 |
if my $removed = !!$guard->_job($id, ('failed', 'finished', 'inactive')) |
136
|
182 |
1 |
unless $job->{'parents'} and $job->{'state'} eq 'inactive' |
139
|
0 |
1 |
unless exists $$jobs{$job->{'id'}} |
147
|
152 |
31 |
unless $job->{'state'} eq 'finished' and $job->{'finished'} <= $after |
150
|
29 |
2 |
unless grep(($jobs->{$_}{'state'} ne 'finished'), @{$guard->_children($id);}) |
170
|
10 |
55 |
unless my $job = $guard->_job($id, ('active', 'failed', 'finished', 'inactive')) |
171
|
2 |
53 |
unless $job->{'retries'} == $retries |
174
|
10 |
43 |
if $options->{'delay'} |
190
|
17 |
205 |
if $job->{'state'} eq 'active' and not $seen{$job->{'worker'}}++ |
192
|
6 |
47 |
if $job->{'state'} eq 'inactive' and &Minion::Backend::Storable::time() < $job->{'delayed'} || @{$job->{'parents'};} |
221
|
248 |
27 |
unless $options->{'queues'} |
227
|
0 |
5 |
unless $Minion::Backend::Storable::b->{'priority'} <=> $Minion::Backend::Storable::a->{'priority'} |
235
|
0 |
207 |
unless $candidate->{'parents'} |
|
198 |
9 |
unless my(@parents) = @{[] unless $candidate->{'parents'};} |
239
|
76 |
199 |
unless $job |
249
|
45 |
156 |
unless my $job = $guard->_job($id, 'active') |
250
|
2 |
154 |
unless $job->{'retries'} == $retries |
254
|
58 |
96 |
$fail ? : |
257
|
149 |
5 |
unless $fail and $job->{'attempts'} > $retries + 1 |
265
|
15 |
85 |
unless $id and my $worker = $guard->_workers->{$id} |
282
|
930 |
779 |
if $self->{'write'} |
288
|
7 |
1702 |
unless -f (my $file = $self->{'backend'}->file) |
298
|
0 |
4635 |
unless $job->{'parents'} |
|
8 |
4627 |
if grep(($_ eq $id), @{[] unless $job->{'parents'};}) |
316
|
10 |
286 |
unless my $job = $self->_jobs->{$id} |
317
|
241 |
45 |
grep(($job->{'state'} eq $_), @_) ? : |
336
|
930 |
0 |
if ++$_[0]{'write'} |