NAME

Kevin::Command::kevin::jobs - Command to list Minion jobs

VERSION

version 0.7.1

SYNOPSIS

Usage: APPLICATION kevin jobs [OPTIONS]

  ./myapp.pl kevin jobs
  ./myapp.pl kevin jobs -l 10 -o 20
  ./myapp.pl kevin jobs -q important -t foo -t bar -S inactive

Options:
  -h, --help                  Show this summary of available options
  -l, --limit <number>        Number of jobs to show when listing
                              them, defaults to 100
  -o, --offset <number>       Number of jobs to skip when listing
                              them, defaults to 0
  -q, --queue <name>          List only jobs in these queues
  -S, --state <name>          List only jobs in these states
  -t, --task <name>           List only jobs for these tasks

DESCRIPTION

Kevin::Command::kevin::jobs lists jobs at a Minion queue. It produces output as below.

ID       PRI    TASK         STATE      QUEUE           CREATED          STATUS                    WORKER
925851   0      resize       finished   image-resizer   7 minutes ago    Finished 7 minutes ago    27297 
925838   1000   search       failed     item-searcher   13 minutes ago   Failed 13 minutes ago     27191 
925835   1000   upload       finished   uploader        13 minutes ago   Finished 13 minutes ago   27185 
925832   1000   search       finished   item-searcher   13 minutes ago   Finished 13 minutes ago   27188 
925831   100    poke         failed     poker           13 minutes ago   Failed 13 minutes ago     26819 
925830   100    poke         failed     poker           31 hours ago     Failed 31 hours ago       26847 

ATTRIBUTES

Kevin::Command::kevin::jobs inherits all attributes from Mojolicious::Command and implements the following new ones.

description

my $description = $command->description;
$command        = $command->description('Foo');

Short description of this command, used for the command list.

usage

my $usage = $command->usage;
$command  = $command->usage('Foo');

Usage information for this command, used for the help screen.

METHODS

Kevin::Command::kevin::jobs inherits all methods from Mojolicious::Command and implements the following new ones.

run

$command->run(@ARGV);

Run this command.

SEE ALSO

Minion, Minion::Command::minion::job.

AUTHOR

Adriano Ferreira <ferreira@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017-2018 by Adriano Ferreira.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.