You are here

function elysia_cron_is_running in Elysia Cron 5

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

Check if cron is currently running. (Not used by elysia_cron, can be used by external modules)

File

./elysia_cron.module, line 1203

Code

function elysia_cron_is_running() {
  global $elysia_cron_settings_by_channel;
  elysia_cron_initialize();
  $running = array();
  foreach ($elysia_cron_settings_by_channel as $channel => $data) {
    if (elysia_cron_is_channel_running($channel)) {
      $running[] = $channel;
    }
  }
  return $running;
}