NAME

Beam::Minion::Command::job - Command to manage minion jobs

VERSION

version 0.016

SYNOPSIS

beam minion job [-R] [-f] [--remove] [-S <state>] [-q <queue>]
    [-t <task>] [-w] [-l <limit>] [-o <offset>] [<id>]

DESCRIPTION

This command manages the minion queue, lists jobs, lists workers, and allows re-running failed jobs.

ARGUMENTS

<id>

The ID of a job or worker (with the -w option) to display.

OPTIONS

-R --retry

Retry the given job by putting it back in the queue. See -f to retry the job in the current process.

-f --foreground

Retry the given jobs right away in the current process (useful for debugging). See -R to retry the job in the queue.

--remove

Remove the given job(s) from the database.

-S <state> --state <state>

Only show jobs with the given state. The state can be one of: inactive, active, finished, or failed.

-q <queue> --queue <queue>

Only show jobs in the given queue. Defaults to showing jobs in all queues. The default queue for new jobs is default.

-t <task> --task <task>

Only show jobs matching the given task. Beam::Minion task names are <container>:<service>.

-w --workers

List workers instead of jobs.

-l <limit> --limit <limit>

Limit the list to limit entries. Defaults to 100.

-o <offset> --offset <offset>

Skip offset jobs when listing. 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.

SEE ALSO

Beam::Minion, Minion

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 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.