You are here

function elysia_cron_active_jobs in Elysia Cron 6.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_active_jobs()
  2. 5 elysia_cron.module \elysia_cron_active_jobs()
  3. 6 elysia_cron.module \elysia_cron_active_jobs()
  4. 7.2 elysia_cron.module \elysia_cron_active_jobs()
  5. 7 elysia_cron.module \elysia_cron_active_jobs()

Get all jobs that needs to be executed in a channel

1 call to elysia_cron_active_jobs()
elysia_cron_check_run_channel in ./elysia_cron.module
Check if the channel is idle (not running, or stuck). If so set returns available jobs.

File

./elysia_cron.module, line 1427

Code

function elysia_cron_active_jobs($channel, $ignore_disable = false, $ignore_time = false) {
  global $elysia_cron_settings_by_channel;
  $jobs = array();
  foreach ($elysia_cron_settings_by_channel[$channel] as $job => $conf) {
    if ($job != '#data') {
      if (elysia_cron_should_run($conf, -1, $ignore_disable, $ignore_time)) {
        $jobs[] = $job;
      }
    }
  }
  return $jobs;
}