You are here

function ultimate_cron_cleanup_queue in Ultimate Cron 6

Cleanup expired queue items

File

./ultimate_cron.module, line 770
@todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…

Code

function ultimate_cron_cleanup_queue() {

  // Reset expired items in the default queue implementation table. If that's
  // not used, this will simply be a no-op (see D7 system_cron())
  db_query("UPDATE {queue} SET expire = 0 WHERE expire <> 0 AND expire < %d", time());
}