public function shouldExecuteTask($taskName)
    {
        $forceTaskExecution = (defined('DEBUG_FORCE_SCHEDULED_TASKS') && DEBUG_FORCE_SCHEDULED_TASKS);

        if ($forceTaskExecution) {
            return true;
        }

        return $this->taskHasBeenScheduledOnce($taskName) && time() >= $this->timetable[$taskName];
    }
public function shouldExecuteTask($taskName)
    {
        $forceTaskExecution = (defined('DEBUG_FORCE_SCHEDULED_TASKS') && DEBUG_FORCE_SCHEDULED_TASKS);

        if ($forceTaskExecution) {
            return true;
        }

        return $this->taskHasBeenScheduledOnce($taskName) && time() >= $this->timetable[$taskName];
    }
public function shouldExecuteTask ( $ taskName ) { $ forceTaskExecution = ( defined ( 'DEBUG_FORCE_SCHEDULED_TASKS' ) && DEBUG_FORCE_SCHEDULED_TASKS ) ; if ( $ forceTaskExecution ) { return true ; } return $ this -> taskHasBeenScheduledOnce ( $ taskName ) && time ( ) >= $ this -> timetable [ $ taskName ] ; }
Checks if the task should be executed

Task has to be executed if :
- the task has already been scheduled once and the current system time is greater than the scheduled time.
- execution is forced, see $forceTaskExecution

@param string $taskName

@return boolean
Checks if the task should be executed