function elysia_cron_active_jobs in Elysia Cron 7.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_active_jobs()
- 5 elysia_cron.module \elysia_cron_active_jobs()
- 6.2 elysia_cron.module \elysia_cron_active_jobs()
- 6 elysia_cron.module \elysia_cron_active_jobs()
- 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 1663
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;
}