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

NAME

Beam::Minion::Command::run - Command to enqueue a job on Beam::Minion job queue

VERSION

version 0.012

SYNOPSIS

    beam minion run [-d <delay>] [-a <attempts>] [-p <priority]
        <container> <service> [<args>...]

DESCRIPTION

This command adds a job to the Minion queue to execute the given service from the given container.

In order for the job to run, you must run a Minion worker using the beam minion worker command.

ARGUMENTS

container

The container that contains the task to run. This can be an absolute path to a container file, a relative path from the current directory, or a relative path from one of the directories in the BEAM_PATH environment variable (separated by :).

service

The service that defines the task to run. Must be an object that consumes the Beam::Runner role.

OPTIONS

delay

The amount of time, in seconds, to delay the start of the job (from now). Defaults to 0.

attempts

The number of times to automatically retry the job if it fails. Subsequent attempts will be delayed by an increasing amount of time (calculated by (retries ** 4) + 15).

priority

The job's priority. Higher priority jobs will be run first. Defaults to 0.

ENVIRONMENT

BEAM_MINION

This variable defines the shared database to coordinate the Minion workers. This database is used to queue the job. This must be the same for all workers and every job running.

See "Getting Started" in Beam::Minion for how to set this variable.

BEAM_PATH

This variable is a colon-separated list of directories to search for containers.

SEE ALSO

Beam::Minion, Minion

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.