/**
  * @param string $data The job data set for this particular Scheduled Job instance
  * @return boolean true if the run succeeded; false otherwise
  */
 public function run($data)
 {
     /* @var $admin Administration */
     $admin = BeanFactory::getBean('Administration');
     $settings = $admin->getConfigForModule('Forecasts');
     if ($settings['is_setup'] == false) {
         $GLOBALS['log']->fatal("Forecast Module is not setup. " . __CLASS__ . " should not be running");
         return false;
     }
     $args = json_decode(html_entity_decode($data), true);
     $this->job->runnable_ran = true;
     // use the processWorksheetDataChunk to run the code.
     ForecastWorksheet::processWorksheetDataChunk($args['forecast_by'], $args['data']);
     $this->job->succeedJob();
     return true;
 }