function elysia_cron_set_channel_stats in Elysia Cron 7
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_set_channel_stats()
- 5 elysia_cron.module \elysia_cron_set_channel_stats()
- 6.2 elysia_cron.module \elysia_cron_set_channel_stats()
- 6 elysia_cron.module \elysia_cron_set_channel_stats()
- 7.2 elysia_cron.module \elysia_cron_set_channel_stats()
2 calls to elysia_cron_set_channel_stats()
- elysia_cron_completed in ./
elysia_cron.module - Successful termination (after all shutdown hooks invoked by cron functions).
- elysia_cron_reset_stats in ./
elysia_cron.module
File
- ./
elysia_cron.module, line 525
Code
function elysia_cron_set_channel_stats($channel, $last_run = -1, $last_execution_time = -1, $execution_count = -1, $avg_execution_time = -1, $max_execution_time = -1, $last_shutdown_time = -1, $last_aborted = -1, $abort_count = -1, $last_abort_function = -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;
}
if ($last_shutdown_time != -1) {
$data['last_shutdown_time'] = $last_shutdown_time;
}
if ($last_aborted != -1) {
$data['last_aborted'] = $last_aborted;
}
if ($abort_count != -1) {
$data['abort_count'] = $abort_count;
}
if ($last_abort_function != -1) {
$data['last_abort_function'] = $last_abort_function;
}
elysia_cron_set($channel, true, $data);
}