Kevin::Command::kevin::workers - aferreira/cpan-Kevin-Command-kevin GitHub Wiki
Usage: APPLICATION kevin workers [OPTIONS]
./myapp.pl kevin workers
./myapp.pl kevin workers -l 10 -o 20
Options:
-h, --help Show this summary of available options
-l, --limit <number> Number of workers to show when listing
them, defaults to 100
-o, --offset <number> Number of workers to skip when listing
them, defaults to 0
Kevin::Command::kevin::workers lists workers at a Minion queue. It produces output as below.
ID HOST:PID JOBS STATUS QUEUES
27302 39c7d2ded2c4/dev13.ke.vin:31 0/4/310 Up 2 days image-resizer
27293 e7b1c0a64810/dev12.ke.vin:34 0/4/378 Up 2 days image-resizer
27187 7d7190787c5e/dev12.ke.vin:33 0/4/381 Up 2 days uploader video-uploader
27186 6badf6e19282/dev12.ke.vin:34 0/4/289 Up 2 days uploader video-uploader
27185 59dc9b9752dd/dev12.ke.vin:35 0/4/108 Up 2 days uploader video-uploader
26851 8bd2e06cdbd2/dev13.ke.vin:31 0/4/209 Up 2 days poker
26850 b9d044771a57/dev13.ke.vin:32 0/4/237 Up 11 days poker
26822 f24eaa47795d:6429 0/4/183 Up 2 weeks item-searcher
26748 0fdb4ead83c5:6400 0/4/349 Up 2 weeks item-searcher
The entry under JOBS
reads as
active jobs / capacity / performed jobs
Kevin::Command::kevin::workers 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::workers inherits all methods from Mojolicious::Command and implements the following new ones.
$worker->run(@ARGV);
Run this command.