function drush_hosting_pause_validate

7.x-3.x pause.hosting.inc drush_hosting_pause_validate($url)

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);
  }
}