@task
def drainrestart():
  check_min_healthy_instances(2)
  drain()
  # Stop first to make sure we no longer use the viewfinder init scripts.
  stop()
  restart()
  undrain()
Drain and restart nodes.
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/drainrestart