1Minion::Command::minionU:s:ejrobC(o3n)tributed Perl DocuMmiennitoant:i:oCnommand::minion::job(3)
2
3
4
6 Minion::Command::minion::job - Minion job command
7
9 Usage: APPLICATION minion job [OPTIONS] [IDS]
10
11 ./myapp.pl minion job
12 ./myapp.pl minion job 10023
13 ./myapp.pl minion job -w
14 ./myapp.pl minion job -w 23
15 ./myapp.pl minion job -s
16 ./myapp.pl minion job -f 10023
17 ./myapp.pl minion job -q important -t foo -t bar -S inactive
18 ./myapp.pl minion job -e foo -a '[23, "bar"]'
19 ./myapp.pl minion job -e foo -P 10023 -P 10024 -p 5 -q important
20 ./myapp.pl minion job -e 'foo' -n '{"test":123}'
21 ./myapp.pl minion job -R -d 10 10023
22 ./myapp.pl minion job --remove 10023
23 ./myapp.pl minion job -n '["test"]'
24 ./myapp.pl minion job -L
25 ./myapp.pl minion job -L some_lock some_other_lock
26 ./myapp.pl minion job -b jobs -a '[12]'
27 ./myapp.pl minion job -b jobs -a '[12]' 23 24 25
28
29 Options:
30 -A, --attempts <number> Number of times performing this new job will be
31 attempted, defaults to 1
32 -a, --args <JSON array> Arguments for new job or worker remote control
33 command in JSON format
34 -b, --broadcast <command> Broadcast remote control command to one or more
35 workers
36 -d, --delay <seconds> Delay new job for this many seconds
37 -e, --enqueue <task> New job to be enqueued
38 -f, --foreground Retry job in "minion_foreground" queue and
39 perform it right away in the foreground (very
40 useful for debugging)
41 -H, --history Show queue history
42 -h, --help Show this summary of available options
43 --home <path> Path to home directory of your application,
44 defaults to the value of MOJO_HOME or
45 auto-detection
46 -L, --locks List active named locks
47 -l, --limit <number> Number of jobs/workers to show when listing
48 them, defaults to 100
49 -m, --mode <name> Operating mode for your application, defaults to
50 the value of MOJO_MODE/PLACK_ENV or
51 "development"
52 --n, notes <JSON> Notes in JSON format for new job or list only
53 jobs with one of these notes
54 -o, --offset <number> Number of jobs/workers to skip when listing
55 them, defaults to 0
56 -P, --parent <id> One or more jobs the new job depends on
57 -p, --priority <number> Priority of new job, defaults to 0
58 -q, --queue <name> Queue to put new job in, defaults to "default",
59 or list only jobs in these queues
60 -R, --retry Retry job
61 --remove Remove job
62 -S, --state <name> List only jobs in these states
63 -s, --stats Show queue statistics
64 -t, --task <name> List only jobs for these tasks
65 -U, --unlock <name> Release named lock
66 -w, --workers List workers instead of jobs, or show
67 information for a specific worker
68
70 Minion::Command::minion::job manages the Minion job queue.
71
73 Minion::Command::minion::job inherits all attributes from
74 Mojolicious::Command and implements the following new ones.
75
76 description
77 my $description = $job->description;
78 $job = $job->description('Foo');
79
80 Short description of this command, used for the command list.
81
82 usage
83 my $usage = $job->usage;
84 $job = $job->usage('Foo');
85
86 Usage information for this command, used for the help screen.
87
89 Minion::Command::minion::job inherits all methods from
90 Mojolicious::Command and implements the following new ones.
91
92 run
93 $job->run(@ARGV);
94
95 Run this command.
96
98 Minion, Mojolicious::Guides, <https://mojolicious.org>.
99
100
101
102perl v5.30.1 2020-02-02 Minion::Command::minion::job(3)