The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

dispatch

Dispatch the task

processChain

Process the chain of tasks

start

Start the task

tag

Convert name and value to a tag

tagify

Convert a hash to an array of tags

NAME

Minion::Task - A task boilerplate for Minion

SYNOPSIS

    package MyApp::Tasks::HelloWorld;
    use Mojo::Base 'Minion::Task';

    ... defined your own logic here ...

DESCRIPTION

Minion::Task is a package that provides a way of handling minion tasks

ATTRIBUTES

Minion::Task inherits all attributes from Mojo::Base.

METHODS

Minion::Task inherits all methods from Mojo::Base and implements the following new ones.

dispatch

    $task->dispatch;

Is basically a link to start method.

processChain

    $task->processChain;

If current task has subtasks or if there's something defined in the args->{ chain }, those tasks will be dispatched.

start

    $task->start;

Start processing the task.

SEE ALSO

Mojolicious, Mojolicious::Plugin::Minion::Overview, Mojolicious::Guides, https://mojolicious.org.