function elysia_cron_execute_aborted in Elysia Cron 6
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_execute_aborted()
- 5 elysia_cron.module \elysia_cron_execute_aborted()
- 6.2 elysia_cron.module \elysia_cron_execute_aborted()
- 7.2 elysia_cron.module \elysia_cron_execute_aborted()
- 7 elysia_cron.module \elysia_cron_execute_aborted()
2 calls to elysia_cron_execute_aborted()
- elysia_cron_cleanup in ./
elysia_cron.module - Shutdown function for cron cleanup.
- elysia_cron_run in ./
elysia_cron.module
File
- ./
elysia_cron.module, line 1112
Code
function elysia_cron_execute_aborted($channel) {
global $elysia_cron_settings_by_channel;
$last_job = '';
foreach ($elysia_cron_settings_by_channel[$channel] as $job => $conf) {
if ($job != '#data') {
if (elysia_cron_is_job_running($job)) {
$last_job .= ' ' . $job;
elysia_cron_set_job_running($job, 0);
}
}
}
elysia_cron_set($channel, true, array(
'running' => 0,
//time(),
'last_aborted' => 1,
'abort_count' => elysia_cron_get_channel_abort_count($channel) + 1,
'last_abort_function' => $last_job,
));
return trim($last_job);
}