You are here

function _upgrade_status_fetch_data in Upgrade Status 7

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

1 call to _upgrade_status_fetch_data()
upgrade_status_fetch_data in ./upgrade_status.module
Attempts to fetch update data after loading the necessary include file.

File

./upgrade_status.fetch.inc, line 84

Code

function _upgrade_status_fetch_data() {
  $queue = DrupalQueue::get('upgrade_status_fetch_tasks');
  $end = time() + variable_get('update_max_fetch_time', UPDATE_MAX_FETCH_TIME);
  while (time() < $end && ($item = $queue
    ->claimItem())) {
    _upgrade_status_process_fetch_task($item->data);
    $queue
      ->deleteItem($item);
  }
}