_update_fetch_data

7 update.fetch.inc _update_fetch_data()
8 update.fetch.inc _update_fetch_data()

Attempt to drain the queue of tasks for release history data to fetch.

1 call to _update_fetch_data()

File

modules/update/update.fetch.inc, line 101
Code required only when fetching information about available updates.

Code

function _update_fetch_data() {
  $queue = DrupalQueue::get('update_fetch_tasks');
  $end = time() + variable_get('update_max_fetch_time', UPDATE_MAX_FETCH_TIME);
  while (time() < $end && ($item = $queue->claimItem())) {
    _update_process_fetch_task($item->data);
    $queue->deleteItem($item);
  }
}
Login or register to post comments