scheduler fixes
This commit is contained in:
@@ -219,7 +219,6 @@ class Scheduler extends SugarBean {
|
||||
*/
|
||||
function fireQualified() {
|
||||
if(empty($this->id)) { // execute only if we have an instance
|
||||
$GLOBALS['log']->fatal('Scheduler called fireQualified() in a non-instance');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -228,10 +227,8 @@ class Scheduler extends SugarBean {
|
||||
//_pp('now: '.$now); _pp($validTimes);
|
||||
|
||||
if(is_array($validTimes) && in_array($now, $validTimes)) {
|
||||
$GLOBALS['log']->debug('----->Scheduler found valid job ('.$this->name.') for time GMT('.$now.')');
|
||||
return true;
|
||||
} else {
|
||||
$GLOBALS['log']->debug('----->Scheduler did NOT find valid job ('.$this->name.') for time GMT('.$now.')');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -340,7 +337,6 @@ class Scheduler extends SugarBean {
|
||||
|
||||
$this->cleanJobLog();
|
||||
$allSchedulers = $this->get_full_list('', 'schedulers.status=\'Active\'');
|
||||
|
||||
if(!empty($allSchedulers)) {
|
||||
foreach($allSchedulers as $focus) {
|
||||
if($focus->fireQualified()) {
|
||||
|
||||
Reference in New Issue
Block a user