function ultimate_cron_update_7102 in Ultimate Cron 7
Same name and namespace in other branches
- 7.2 ultimate_cron.install \ultimate_cron_update_7102()
Convert polling latenct from microseconds to miliseconds.
File
- ./
ultimate_cron.install, line 211 - Installation file for Ultimate Cron
Code
function ultimate_cron_update_7102() {
// There's no safe way to check if this update has been run before or not,
// as it could have run when this update was previously called
// ultimate_cron_update_6001() or ultimate_cron_update_7001() - all we can do
// is run it anyway and issue a message asking the admin to check the polling
// latency.
// Convert polling latency from microseconds to miliseconds.
$polling_latency = variable_get('ultimate_cron_queue_polling_latency', NULL);
if ($polling_latency) {
$polling_latency /= 1000;
variable_set('ultimate_cron_queue_polling_latency', $polling_latency);
return t('Please double check your Ultimate Cron <a href="@admin">Queue polling latency</a>', array(
'@admin' => url('admin/config/system/cron/settings'),
));
}
}