You are here

function elysia_cron_get_job_stats in Elysia Cron 7.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_get_job_stats()
  2. 5 elysia_cron.module \elysia_cron_get_job_stats()
  3. 6.2 elysia_cron.module \elysia_cron_get_job_stats()
  4. 6 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_initialize in ./elysia_cron.module
elysia_cron_internal_execute_job in ./elysia_cron.module
Internal function to execute a single job.

File

./elysia_cron.module, line 814

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),
  );
}