Kevin::Command::kevin::jobs - aferreira/cpan-Kevin-Command-kevin GitHub Wiki
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 -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 this queue
-S, --state <name> List only jobs in this state
-t, --task <name> List only jobs for this task
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
Kevin::Command::kevin::jobs inherits all attributes from Mojolicious::Command and implements the following new ones.
my $description = $cmd->description;
$cmd = $cmd->description('Foo');
Short description of this command, used for the command list.
my $usage = $cmd->usage;
$cmd = $cmd->usage('Foo');
Usage information for this command, used for the help screen.
Kevin::Command::kevin::jobs inherits all methods from Mojolicious::Command and implements the following new ones.
$worker->run(@ARGV);
Run this command.