You are here

function drush_hosting_pause_validate in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 pause.hosting.inc \drush_hosting_pause_validate()
  2. 7.3 pause.hosting.inc \drush_hosting_pause_validate()

Make sure Aegir is ready to be upgraded.

File

./pause.hosting.inc, line 11
Drush include for the Hosting module's hosting pause command.

Code

function drush_hosting_pause_validate($url) {

  // Wait for the task queue to be processed and tasks to complete.
  while (hosting_task_count() + hosting_task_count_running() > 0) {
    drush_log(dt('Waiting for the task queue to be processed and tasks to complete.'), 'message');
    sleep(1);
  }
}