You are here

function elysia_cron_get_job_stats in Elysia Cron 5

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_get_job_stats()
  2. 6.2 elysia_cron.module \elysia_cron_get_job_stats()
  3. 6 elysia_cron.module \elysia_cron_get_job_stats()
  4. 7.2 elysia_cron.module \elysia_cron_get_job_stats()
  5. 7 elysia_cron.module \elysia_cron_get_job_stats()
2 calls to elysia_cron_get_job_stats()
elysia_cron_execute in ./elysia_cron.module
elysia_cron_initialize in ./elysia_cron.module

File

./elysia_cron.module, line 641

Code

function elysia_cron_get_job_stats($job, $refresh = false) {
  return array(
    'last_run' => elysia_cron_get($job, false, 'last_run', 0, $refresh),
    'last_execution_time' => elysia_cron_get($job, false, 'last_execution_time', 0, $refresh),
    'execution_count' => elysia_cron_get($job, false, 'execution_count', 0, $refresh),
    'avg_execution_time' => elysia_cron_get($job, false, 'avg_execution_time', 0, $refresh),
    'max_execution_time' => elysia_cron_get($job, false, 'max_execution_time', 0, $refresh),
  );
}