You are here

function elysia_cron_is_channel_running in Elysia Cron 7.2

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

Check if channel is running now.

Parameters

string $channel: Channel name.

int $default: Default value.

bool $refresh: If TRUE - fresh status will be get from database.

Return value

int Timestamp from beginning of running or zero.

5 calls to elysia_cron_is_channel_running()
drush_elysia_cron_run_wrapper in ./elysia_cron.drush.inc
Custom callback for 'elysia-cron' drush command.
elysia_cron_admin_page in ./elysia_cron.admin.inc
Page callback for 'admin/config/system/cron' path.
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.
elysia_cron_internal_execute_channel_cleanup in ./elysia_cron.module
Shutdown function for cron cleanup.
elysia_cron_is_running in ./elysia_cron.module
Check if cron is currently running. (Not used by elysia_cron, can be used by external modules)

File

./elysia_cron.module, line 490

Code

function elysia_cron_is_channel_running($channel, $default = 0, $refresh = FALSE) {
  return elysia_cron_get($channel, TRUE, 'running', $default, $refresh);
}