function elysia_cron_get_channel_stats in Elysia Cron 7.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_get_channel_stats()
- 5 elysia_cron.module \elysia_cron_get_channel_stats()
- 6.2 elysia_cron.module \elysia_cron_get_channel_stats()
- 6 elysia_cron.module \elysia_cron_get_channel_stats()
- 7 elysia_cron.module \elysia_cron_get_channel_stats()
Grab statistics by channel.
Parameters
string $channel: Channel name.
bool $refresh: If TRUE - fresh status will be get from database.
Return value
array Statistics for specified channel.
2 calls to elysia_cron_get_channel_stats()
- elysia_cron_initialize in ./
elysia_cron.module - elysia_cron_internal_execute_channel_completed in ./
elysia_cron.module - Successful termination (after all shutdown hooks invoked by cron functions).
File
- ./
elysia_cron.module, line 647
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, ''),
);
}