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 [ID]

    ./myapp.pl minion job
    ./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 533b4e2b5867b4c72b0a0000
    ./myapp.pl minion job 533b4e2b5867b4c72b0a0000 -r

  Options:
    -a, --args <JSON array>   Arguments for new job in JSON format.
    -d, --delayed <epoch>     Delay new job until after this point in time.
    -e, --enqueue <name>      New job to be enqueued.
    -L, --limit <number>      Number of jobs to show when listing them,
                              defaults to 100.
    -p, --priority <number>   Priority of new job, defaults to 0.
    -r, --remove              Remove job.
    -R, --restart             Restart job.
    -s, --stats               Show queue statistics.
    -S, --skip <number>       Number of jobs to skip when listing them,
                              defaults to 0.

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.