mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
CRON: reschedule at startup IIF the task is inactive or it is planned in the future
SVN:trunk[2822]
This commit is contained in:
@@ -134,7 +134,8 @@ function CronExec($oP, $aProcesses, $bVerbose)
|
||||
{
|
||||
$sTaskClass = $oTask->Get('class_name');
|
||||
$oRefClass = new ReflectionClass($sTaskClass);
|
||||
if ($oRefClass->implementsInterface('iScheduledProcess'))
|
||||
$oNow = new DateTime();
|
||||
if($oRefClass->implementsInterface('iScheduledProcess') && (($oTask->Get('status') != 'active') || ($oTask->Get('next_run_date') > $oNow->format('Y-m-d H:i:s'))))
|
||||
{
|
||||
if ($bVerbose)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user