You are here

function hosting_task_gc_list_sites in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 task_gc/hosting_task_gc.module \hosting_task_gc_list_sites()

Prepare a list of sites with garbage to collect.

Return value

DatabaseStatementInterface A result object.

1 call to hosting_task_gc_list_sites()
hosting_task_gc_queue in task_gc/hosting_task_gc.module
The main queue callback task_gc.

File

task_gc/hosting_task_gc.module, line 70
Module code for Hosting task garbage collection

Code

function hosting_task_gc_list_sites() {
  $query = "SELECT DISTINCT s.nid " . "FROM {hosting_site} s INNER JOIN {hosting_task} t ON s.nid = t.rid " . "WHERE s.status = :status LIMIT 5";
  return db_query($query, array(
    ':status' => HOSTING_SITE_DELETED,
  ));
}