Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::GenericAgent

NAME

Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::GenericAgent – Scheduler daemon task handler module for GenericAgent

DESCRIPTION

This task handler executes generic agent jobs

PUBLIC INTERFACE

new()

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

Run()

Performs the selected task.

    my $Result = $TaskHandlerObject->Run(
        TaskID   => 123,
        TaskName => 'some name',    # optional
        Data     => {               # job data as got from Kernel::System::GenericAgent::JobGet()
            Name 'job name',
            Valid 1,
            # ...
        },
    );

Returns:

    $Result =  1;       # or fail in case of an error
Scroll to Top