| blib/lib/Mojolicious/Plugin/Minion/Workers.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 28 | 0.0 |
| line | l | !l | condition |
|---|---|---|---|
| 43 | 0 | 0 | $self->manage and $self->conf->{'is_manage'} = 0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 20 | 0 | 0 | 0 | $backend and ref $conf->{$backend} eq 'CODE' |
| 75 | 0 | 0 | 0 | $ENV{'HYPNOTOAD_PID'} and not $ENV{'HYPNOTOAD_STOP'} |
| 129 | 0 | 0 | 0 | kill 'QUIT', $_->{'pid'} and $minion->app->log->info("Minion worker (pid $_->{'pid'}) was stopped") |
| line | l | !l | condition |
|---|---|---|---|
| 14 | 0 | 0 | delete $conf->{'tasks'} || {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 22 | 0 | 0 | 0 | $app->renderer->get_helper('minion') or not $backend |
| 33 | 0 | 0 | 0 | !$ARGV[0] || $ARGV[0] eq 'daemon' || $ARGV[0] eq 'prefork' |
| 0 | 0 | 0 | $ENV{'HYPNOTOAD_APP'} || $ARGV[0] && $ARGV[0] eq 'prefork' | |
| 56 | 0 | 0 | 0 | $workers ||= $conf->{'workers'} |
| 125 | 0 | 0 | 0 | $workers ||= $minion->backend->list_workers->{'workers'} |