def _loop_watching_for_changes_and_idle_instances(self):
    while not self._quit_event.is_set():
      if self.ready:
        self._shutdown_idle_instances()
        if self._automatic_restarts:
          self._handle_changes()
      self._quit_event.wait(timeout=1)
Loops until the InstancePool is done watching for file changes.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/server.py/BasicScalingServer._loop_watching_for_changes_and_idle_instances