You are here

public function UltimateCronLauncher::launchJobs in Ultimate Cron 7.2

Default implementation of jobs launcher.

Parameters

array $jobs: Array of UltimateCronJob to launch.

2 methods override UltimateCronLauncher::launchJobs()
UltimateCronBackgroundProcessLegacyLauncher::launchJobs in plugins/ultimate_cron/launcher/background_process_legacy.class.php
Launch manager.
UltimateCronSerialLauncher::launchJobs in plugins/ultimate_cron/launcher/serial.class.php
Launch manager.

File

./ultimate_cron.plugin.inc, line 1043
Plugin framework for Ultimate Cron.

Class

UltimateCronLauncher
Abstract class for Ultimate Cron launchers.

Code

public function launchJobs($jobs) {
  foreach ($jobs as $job) {
    if ($job
      ->isScheduled()) {
      $job
        ->launch();
    }
  }
}