NAME

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

VERSION

version 0.7.1

SYNOPSIS

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

DESCRIPTION

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

ATTRIBUTES

Kevin::Command::kevin::workers 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::workers 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.