Minion:...on::job(3)
π Minion::Command::minion::job β the job command, bestie π
okay so this is a page from the User Contributed Perl Documentation collection, and it's literally all about Minion::Command::minion::job, which is your girl for managing the Minion job queue. no cap. π
β¨ NAME β¨
Minion::Command::minion::job β the Minion job command. that's it, that's the name. π
π SYNOPSIS π
here's the vibe, copy-paste ready:
Usage: APPLICATION minion job [OPTIONS] [IDS]
./myapp.pl minion job
./myapp.pl minion job 10023
./myapp.pl minion job -w
./myapp.pl minion job -w 23
./myapp.pl minion job -s
./myapp.pl minion job -f 10023
./myapp.pl minion job -q important -t foo -t bar -S inactive
./myapp.pl minion job -q 'host:localhost' -S inactive
./myapp.pl minion job -e foo -a '[23, "bar"]'
./myapp.pl minion job -e foo -x 1 -P 10023 -P 10024 -p 5 -q important
./myapp.pl minion job -e 'foo' -n '{"test":123}'
./myapp.pl minion job -R -d 10 -E 300 10023
./myapp.pl minion job --remove 10023
./myapp.pl minion job --retry-failed
./myapp.pl minion job -n '["test"]'
./myapp.pl minion job -L
./myapp.pl minion job -L some_lock some_other_lock
./myapp.pl minion job -b jobs -a '[12]'
./myapp.pl minion job -b jobs -a '[12]' 23 24 25
and then, the whole menu of options π
Options:
-A, --attempts <number> Number of times performing this new job will be
attempted, defaults to 1
-a, --args <JSON array> Arguments for new job or worker remote control
command in JSON format
-b, --broadcast <command> Broadcast remote control command to one or more
workers
-d, --delay <seconds> Delay new job for this many seconds
-E, --expire <seconds> New job is valid for this many seconds before
it expires
-e, --enqueue <task> New job to be enqueued
-f, --foreground Retry job in "minion_foreground" queue and
perform it right away in the foreground (very
useful for debugging)
-H, --history Show queue history
-h, --help Show this summary of available options
--home <path> Path to home directory of your application,
defaults to the value of MOJO_HOME or
auto-detection
-L, --locks List active named locks
-l, --limit <number> Number of jobs/workers to show when listing
them, defaults to 100
-m, --mode <name> Operating mode for your application, defaults to
the value of MOJO_MODE/PLACK_ENV or
"development"
-n, --notes <JSON> Notes in JSON format for new job or list only
jobs with one of these notes
-o, --offset <number> Number of jobs/workers to skip when listing
them, defaults to 0
-P, --parent <id> One or more jobs the new job depends on
-p, --priority <number> Priority of new job, defaults to 0
-q, --queue <name> Queue to put new job in, defaults to "default",
or list only jobs in these queues
-R, --retry Retry job
--retry-failed Retry all failed jobs at once
--remove Remove job
--remove-failed Remove all failed jobs at once
-S, --state <name> List only jobs in these states
-s, --stats Show queue statistics
-T, --tasks List available tasks
-t, --task <name> List only jobs for these tasks
-U, --unlock <name> Release named lock
-w, --workers List workers instead of jobs, or show
information for a specific worker
-x, --lax <bool> Jobs this job depends on may also have failed
to allow for it to be processed
π OPTIONS π
one bullet each, bestie, no skips:
-A,--attempts <number>β how many times this new job gets attempted. defaults to1.-a,--args <JSON array>β args for a new job, or for a worker remote control command, and they gotta be in JSON format. πΈ-b,--broadcast <command>β broadcast a remote control command out to one or more workers. group chat, but for workers. π£-d,--delay <seconds>β delay the new job by this many seconds. it can wait, she's busy. β³-E,--expire <seconds>β the new job stays valid for this many seconds before it expires. periodt.-e,--enqueue <task>β the new job you wanna enqueue. π-f,--foregroundβ retry the job in the"minion_foreground"queue and perform it right away, in the foreground. very useful for debugging, fr fr. π-H,--historyβ show the queue history. the receipts. π§Ύ-h,--helpβ show this summary of available options. classic.--home <path>β path to the home directory of your application. defaults to the value ofMOJO_HOMEor auto-detection. π-L,--locksβ list active named locks. π-l,--limit <number>β how many jobs/workers to show when listing them. defaults to100.-m,--mode <name>β operating mode for your application. defaults to the value ofMOJO_MODE/PLACK_ENVor"development". β¨-n,--notes <JSON>β notes in JSON format for a new job, or list only the jobs with one of these notes. π-o,--offset <number>β how many jobs/workers to skip when listing them. defaults to0.-P,--parent <id>β one or more jobs that the new job depends on. it's giving family tree. π³-p,--priority <number>β priority of the new job. defaults to0.-q,--queue <name>β the queue to put the new job in, defaults to"default", or list only jobs in these queues. π-R,--retryβ retry the job. π--retry-failedβ retry all failed jobs at once. all of them. every last one. π--removeβ remove the job. bye bestie π--remove-failedβ remove all failed jobs at once. spring cleaning energy. π§Ή-S,--state <name>β list only jobs in these states.-s,--statsβ show queue statistics. numbers, slay. π-T,--tasksβ list available tasks.-t,--task <name>β list only jobs for these tasks.-U,--unlock <name>β release a named lock. π-w,--workersβ list workers instead of jobs, or show info for a specific worker. π·-x,--lax <bool>β jobs that this job depends on may also have failed, and it'll still allow this job to be processed. lenient queen. π«Ά
πΈ DESCRIPTION πΈ
Minion::Command::minion::job manages the Minion job queue. that's the whole job description (pun fully intended) and honestly? iconic. π
π¦ ATTRIBUTES π¦
Minion::Command::minion::job inherits all attributes from Mojolicious::Command and implements the following new ones. inheritance? we love to see it.
π description
my $description = $job->description;
$job = $job->description('Foo');
short description of this command, used for the command list. it's the lil one-liner in the lineup. β¨
π usage
my $usage = $job->usage;
$job = $job->usage('Foo');
usage information for this command, used for the help screen. the how-to, basically.
π§ METHODS π§
Minion::Command::minion::job inherits all methods from Mojolicious::Command and implements the following new ones.
π run
$job->run(@ARGV);
run this command. that's it. go off. π
π SEE ALSO π
go read these too, bestie, they're all connected:
MinionMinion::Guide- <https://minion.pm>
Mojolicious::Guides- <https://mojolicious.org>
and that's the whole page, no notes left behind, every flag accounted for π
signing off: this was perl v5.42.0, dated 2026-01-17, brought to you by Minion:...on::job(3). mwah. πβ¨π
π¦ where this page comes from
- fedora 44: perl-Minion 11.0-2.fc44 Β· Artistic-2.0 AND CC-BY-SA-4.0 AND MIT AND ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms