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

DESCRIPTION

76       Minion::Command::minion::job manages the Minion job queue.
77

ATTRIBUTES

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

METHODS

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

SEE ALSO

104       Minion, <https://minion.pm>, Mojolicious::Guides,
105       <https://mojolicious.org>.
106
107
108
109perl v5.32.1                      2021-01-27   Minion::Command::minion::job(3)
Impressum