1Minion::Command::minionU:s:ejrobC(o3n)tributed Perl DocuMmiennitoant:i:oCnommand::minion::job(3)
2
3
4

NAME

6       Minion::Command::minion::job - Minion job command
7

SYNOPSIS

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 -Q 'host:localhost' -S inactive
19           ./myapp.pl minion job -e foo -a '[23, "bar"]'
20           ./myapp.pl minion job -e foo -x 1 -P 10023 -P 10024 -p 5 -q important
21           ./myapp.pl minion job -e 'foo' -n '{"test":123}'
22           ./myapp.pl minion job -R -d 10 -E 300 10023
23           ./myapp.pl minion job --remove 10023
24           ./myapp.pl minion job --retry-failed
25           ./myapp.pl minion job -n '["test"]'
26           ./myapp.pl minion job -L
27           ./myapp.pl minion job -L some_lock some_other_lock
28           ./myapp.pl minion job -b jobs -a '[12]'
29           ./myapp.pl minion job -b jobs -a '[12]' 23 24 25
30
31         Options:
32           -A, --attempts <number>     Number of times performing this new job will be
33                                       attempted, defaults to 1
34           -a, --args <JSON array>     Arguments for new job or worker remote control
35                                       command in JSON format
36           -b, --broadcast <command>   Broadcast remote control command to one or more
37                                       workers
38           -d, --delay <seconds>       Delay new job for this many seconds
39           -E, --expire <seconds>      New job is valid for this many seconds before
40                                       it expires
41           -e, --enqueue <task>        New job to be enqueued
42           -f, --foreground            Retry job in "minion_foreground" queue and
43                                       perform it right away in the foreground (very
44                                       useful for debugging)
45           -H, --history               Show queue history
46           -h, --help                  Show this summary of available options
47               --home <path>           Path to home directory of your application,
48                                       defaults to the value of MOJO_HOME or
49                                       auto-detection
50           -L, --locks                 List active named locks
51           -l, --limit <number>        Number of jobs/workers to show when listing
52                                       them, defaults to 100
53           -m, --mode <name>           Operating mode for your application, defaults to
54                                       the value of MOJO_MODE/PLACK_ENV or
55                                       "development"
56           -n, --notes <JSON>          Notes in JSON format for new job or list only
57                                       jobs with one of these notes
58           -o, --offset <number>       Number of jobs/workers to skip when listing
59                                       them, defaults to 0
60           -P, --parent <id>           One or more jobs the new job depends on
61           -p, --priority <number>     Priority of new job, defaults to 0
62           -q, --queue <name>          Queue to put new job in, defaults to "default",
63                                       or list only jobs in these queues
64           -R, --retry                 Retry job
65               --retry-failed          Retry all failed jobs at once
66               --remove                Remove job
67               --remove-failed         Remove all failed jobs at once
68           -S, --state <name>          List only jobs in these states
69           -s, --stats                 Show queue statistics
70           -T, --tasks                 List available tasks
71           -t, --task <name>           List only jobs for these tasks
72           -U, --unlock <name>         Release named lock
73           -w, --workers               List workers instead of jobs, or show
74                                       information for a specific worker
75           -x, --lax <bool>            Jobs this job depends on may also have failed
76                                       to allow for it to be processed
77

DESCRIPTION

79       Minion::Command::minion::job manages the Minion job queue.
80

ATTRIBUTES

82       Minion::Command::minion::job inherits all attributes from
83       Mojolicious::Command and implements the following new ones.
84
85   description
86         my $description = $job->description;
87         $job            = $job->description('Foo');
88
89       Short description of this command, used for the command list.
90
91   usage
92         my $usage = $job->usage;
93         $job      = $job->usage('Foo');
94
95       Usage information for this command, used for the help screen.
96

METHODS

98       Minion::Command::minion::job inherits all methods from
99       Mojolicious::Command and implements the following new ones.
100
101   run
102         $job->run(@ARGV);
103
104       Run this command.
105

SEE ALSO

107       Minion, Minion::Guide, <https://minion.pm>, Mojolicious::Guides,
108       <https://mojolicious.org>.
109
110
111
112perl v5.34.0                      2022-01-20   Minion::Command::minion::job(3)
Impressum