The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Minion::Command::minion::job - Minion job command

SYNOPSIS

  Usage: APPLICATION minion job [OPTIONS] [ID]

    ./myapp.pl minion job
    ./myapp.pl minion job -t foo -S inactive
    ./myapp.pl minion job -e foo -a '[23, "bar"]'
    ./myapp.pl minion job -e foo -p 5
    ./myapp.pl minion job -s
    ./myapp.pl minion job -w -l 5
    ./myapp.pl minion job 10023
    ./myapp.pl minion job -R 10023
    ./myapp.pl minion job -r 10023

  Options:
    -a, --args <JSON array>   Arguments for new job in JSON format
    -d, --delay <seconds>     Delay new job for this many seconds
    -e, --enqueue <name>      New job to be enqueued
    -l, --limit <number>      Number of jobs/workers to show when listing
                              them, defaults to 100
    -o, --offset <number>     Number of jobs/workers to skip when listing
                              them, defaults to 0
    -p, --priority <number>   Priority of new job, defaults to 0
    -R, --retry               Retry job
    -r, --remove              Remove job
    -S, --state <state>       List only jobs in this state
    -s, --stats               Show queue statistics
    -t, --task <name>         List only jobs for this task
    -w, --workers             List workers instead of jobs

DESCRIPTION

Minion::Command::minion::job manages Minion jobs.

ATTRIBUTES

Minion::Command::minion::job inherits all attributes from Mojolicious::Command and implements the following new ones.

description

  my $description = $job->description;
  $job            = $job->description('Foo');

Short description of this command, used for the command list.

usage

  my $usage = $job->usage;
  $job      = $job->usage('Foo');

Usage information for this command, used for the help screen.

METHODS

Minion::Command::minion::job inherits all methods from Mojolicious::Command and implements the following new ones.

run

  $job->run(@ARGV);

Run this command.

SEE ALSO

Minion, Mojolicious::Guides, http://mojolicio.us.