AsynchronousExecutor

AsynchronousExecutor#

NAME#

Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::AsynchronousExecutor - Scheduler daemon task handler module for generic asynchronous tasks

DESCRIPTION#

This task handler executes scheduler generic asynchronous tasks.

PUBLIC INTERFACE#

new()#

my $TaskHandlerObject = $Kernel::OM->Get('Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::AsynchronousExecutor');

Run()#

Performs the selected asynchronous task.

my $Success = $TaskHandlerObject->Run(
    TaskID   => 123,
    TaskName => 'some name',                # optional
    Data     => {
        Object   => 'Some::Object::Name',
        Function => 'SomeFunctionName',
        Params   => $Params ,               # HashRef with the needed parameters
    },
);

Returns:

$Success => 1,  # or fail in case of an error