The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Minion::Command::minion::worker - Minion worker command

SYNOPSIS

  Usage: APPLICATION minion worker [OPTIONS]

    ./myapp.pl minion worker
    ./myapp.pl minion worker -m production
    ./myapp.pl minion worker -t foo -t bar

  Options:
    -t, --task <name>   One or more tasks to handle, defaults to handling all
                        tasks

DESCRIPTION

Minion::Command::minion::worker starts a Minion worker. You can have as many workers as you like, but on every host they should all be owned by the same user, so they can send each other signals to check which workers are still alive.

SIGNALS

The Minion::Command::minion::worker process can be controlled at runtime with the following signals.

INT, TERM

Stop gracefully after finishing the current job.

ATTRIBUTES

Minion::Command::minion::worker inherits all attributes from Mojolicious::Command and implements the following new ones.

description

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

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

usage

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

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

METHODS

Minion::Command::minion::worker inherits all methods from Mojolicious::Command and implements the following new ones.

run

  $worker->run(@ARGV);

Run this command.

SEE ALSO

Minion, Mojolicious::Guides, http://mojolicio.us.