NAME
Minion::Command::minion::worker - Minion worker command
SYNOPSIS
Usage: APPLICATION minion worker [OPTIONS]
./myapp.pl minion worker
./myapp.pl minion worker -m production -I 15 -j 10
./myapp.pl minion worker -q important -q default
Options:
-I, --heartbeat-interval <seconds> Heartbeat interval, defaults to 60
-j, --jobs <number> Number of jobs to perform
concurrently, defaults to 4
-q, --queue <name> One or more queues to get jobs from,
defaults to "default"
DESCRIPTION
Minion::Command::minion::worker starts a Minion worker. You can have as many workers as you like.
SIGNALS
The Minion::Command::minion::worker process can be controlled at runtime with the following signals.
INT, TERM
Stop gracefully after finishing the current jobs.
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.