function elysia_cron_set_job_stats in Elysia Cron 6.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_set_job_stats()
- 5 elysia_cron.module \elysia_cron_set_job_stats()
- 6 elysia_cron.module \elysia_cron_set_job_stats()
- 7.2 elysia_cron.module \elysia_cron_set_job_stats()
- 7 elysia_cron.module \elysia_cron_set_job_stats()
2 calls to elysia_cron_set_job_stats()
- elysia_cron_internal_execute_job in ./
elysia_cron.module - Internal function to execute a single job
- elysia_cron_reset_stats in ./
elysia_cron.module
File
- ./
elysia_cron.module, line 666
Code
function elysia_cron_set_job_stats($job, $last_run = -1, $last_execution_time = -1, $execution_count = -1, $avg_execution_time = -1, $max_execution_time = -1, $data = array()) {
if ($last_run != -1) {
$data['last_run'] = $last_run;
}
if ($last_execution_time != -1) {
$data['last_execution_time'] = $last_execution_time;
}
if ($execution_count != -1) {
$data['execution_count'] = $execution_count;
}
if ($avg_execution_time != -1) {
$data['avg_execution_time'] = $avg_execution_time;
}
if ($max_execution_time != -1) {
$data['max_execution_time'] = $max_execution_time;
}
elysia_cron_set($job, false, $data);
}