NAME
Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron – Scheduler daemon task handler module for cron like jobs
DESCRIPTION
This task handler executes scheduler tasks based in cron notation.
PUBLIC INTERFACE
new()
my $TaskHandlerObject = $Kernel::OM-Get('Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron');
Run()
Performs the selected Cron task.
my $Success = $TaskHandlerObject->Run(
TaskID => 123,
TaskName => 'some name', # optional
Data => {
Module => 'Kernel::System:::Console:Command::Help',
Function => 'Execute',
Params => [ # parameters array reference
'--force',
'--option',
'my option',
],
},
);
Returns:
$Success => 1, # or fail in case of an error