function lassie_cron
Search API
7.x lassie.module | lassie_cron() |
6.x lassie.module | lassie_cron() |
Implements hook_cron
File
- modules/
lassie/ lassie.module, line 144 - This is the primary module file for the lassie module.
Code
function lassie_cron() {
// If its been less than 45 minutes since last check, then skip. Saves checks if our cron is running very frequently.
$last_check = variable_get("lassie_last_check", 0);
if (time() < ($last_check + (45 * 60))) {
return;
}
watchdog("lassie", "Lassie checking for any long-running jobs....", array(), WATCHDOG_DEBUG);
lassie_check_all();
variable_set("lassie_last_check", time());
}