You are here

function drush_hosting_pause_validate in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 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() {

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