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

DESCRIPTION

66       Minion::Command::minion::job manages the Minion job queue.
67

ATTRIBUTES

69       Minion::Command::minion::job inherits all attributes from
70       Mojolicious::Command and implements the following new ones.
71
72   description
73         my $description = $job->description;
74         $job            = $job->description('Foo');
75
76       Short description of this command, used for the command list.
77
78   usage
79         my $usage = $job->usage;
80         $job      = $job->usage('Foo');
81
82       Usage information for this command, used for the help screen.
83

METHODS

85       Minion::Command::minion::job inherits all methods from
86       Mojolicious::Command and implements the following new ones.
87
88   run
89         $job->run(@ARGV);
90
91       Run this command.
92

SEE ALSO

94       Minion, Mojolicious::Guides, <http://mojolicious.org>.
95
96
97
98perl v5.28.0                      2018-04-19   Minion::Command::minion::job(3)
Impressum