You are here

function elysia_cron_get_channel_stats in Elysia Cron 5.2

Same name and namespace in other branches
  1. 5 elysia_cron.module \elysia_cron_get_channel_stats()
  2. 6.2 elysia_cron.module \elysia_cron_get_channel_stats()
  3. 6 elysia_cron.module \elysia_cron_get_channel_stats()
  4. 7.2 elysia_cron.module \elysia_cron_get_channel_stats()
  5. 7 elysia_cron.module \elysia_cron_get_channel_stats()
2 calls to elysia_cron_get_channel_stats()
elysia_cron_completed in ./elysia_cron.module
Successful termination (after all shutdown hooks invoked by cron functions).
elysia_cron_initialize in ./elysia_cron.module

File

./elysia_cron.module, line 515

Code

function elysia_cron_get_channel_stats($channel, $refresh = false) {
  return array(
    'last_run' => elysia_cron_get($channel, true, 'last_run', 0, $refresh),
    'last_execution_time' => elysia_cron_get($channel, true, 'last_execution_time', 0, $refresh),
    'execution_count' => elysia_cron_get($channel, true, 'execution_count', 0, $refresh),
    'avg_execution_time' => elysia_cron_get($channel, true, 'avg_execution_time', 0, $refresh),
    'max_execution_time' => elysia_cron_get($channel, true, 'max_execution_time', 0, $refresh),
    'last_shutdown_time' => elysia_cron_get($channel, true, 'last_shutdown_time', 0, $refresh),
    'last_aborted' => elysia_cron_get($channel, true, 'last_aborted', 0, $refresh),
    'abort_count' => elysia_cron_get($channel, true, 'abort_count', 0, $refresh),
    'last_abort_function' => elysia_cron_get($channel, true, 'last_abort_function', 0, ''),
  );
}