Group
Extension

Matches 3

Mojolicious-Plugin-Minion-Overview ( C/CR/CRLCU/Mojolicious-Plugin-Minion-Overview-0.1.2.tar.gz, CRLCU, 2020; MetaCPAN )
Mojolicious-Plugin-Minion-Overview/lib/Mojolicious/Plugin/Minion/Overview/Backend/mysql.pm ( view source; MetaCPAN )
ackend::mysql;
use Mojo::Base 'Mojolicious::Plugin::Minion::Overview::Backend';

use Mojo::JSON qw(decode_json);


=head2 failed_jobs

Search failed jobs

=cut

sub failed_jobs {
    return shift->whe
   $collection->each(sub {
        my $object = shift;

        $object->{ tags } = eval { decode_json($object->{ notes })->{ tags } || [$object->{ task }] };
    });

    my $response = {
        res
 $collection->each(sub {
        my $object = shift;

        $object->{ status } = eval { decode_json($object->{ status }) };
        $object->{ jobs_stats } = $self->db->query($stats_sql, $object->{
Mojolicious-Plugin-Minion-Overview ( C/CR/CRLCU/Mojolicious-Plugin-Minion-Overview-0.1.2.tar.gz, CRLCU, 2020; MetaCPAN )
Mojolicious-Plugin-Minion-Overview/lib/Mojolicious/Plugin/Minion/Overview/Controller/API/Metrics/Workers.pm ( view source; MetaCPAN )
view_date'))
        ->worker_waittime_metrics($self->param('worker'));

    return $self->render(json => $waittime);
}

=head2 throughput

Show throughput metrics for a worker

=cut

sub throughput {
inished' });
    my $failed = $throughput->grep(sub { $_->{ state } eq 'failed' });

    return $self->render(json => {
        finished    => $finished,
        failed      => $failed,
    });
}

1;
Mojolicious-Plugin-Minion-Overview ( C/CR/CRLCU/Mojolicious-Plugin-Minion-Overview-0.1.2.tar.gz, CRLCU, 2020; MetaCPAN )
Mojolicious-Plugin-Minion-Overview/lib/Mojolicious/Plugin/Minion/Overview/Controller/API/Metrics/Jobs.pm ( view source; MetaCPAN )
});
    my $failed = $runtime->grep(sub { $_->{ state } eq 'failed' });

    return $self->render(json => {
        finished    => $finished,
        failed      => $failed,
    });
}

=head2 throughp
inished' });
    my $failed = $throughput->grep(sub { $_->{ state } eq 'failed' });

    return $self->render(json => {
        finished    => $finished,
        failed      => $failed,
    });
}

1;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.