Пример #1
0
 /**
  * Do we have any unprocessed jobs scheduled for anytime in the future?
  * @return boolean
  */
 public function hasJobs()
 {
     $count = 0;
     Collection::model('\\Virge\\Cron\\Model\\Job')->filter(function () {
         Filter::isNull('started_on');
     })->count($count);
     return $count > 0;
 }