<s> """<STR_LIT>""" <EOL> import logging <EOL> import sys <EOL> import time <EOL> from cfg import cfg <EOL> import common <EOL> import util <EOL> def main ( ) : <EOL> common . setup ( ) <EOL> run = raw_input ( '<STR_LIT>' ) <EOL> if run != '<STR_LIT:y>' : <EOL> print '<STR_LIT>' <EOL> sys . exit ( ) <EOL> def nix ( instance ) : <EOL> logging . info ( '<STR_LIT>' , instance ) <EOL> util . api . delete_instance ( instance = instance , blocking = True ) <EOL> sched = util . Scheduler ( cfg . num_workers * <NUM_LIT:2> ) <EOL> for name in util . get_instance_names ( ) : <EOL> sched . schedule ( nix , ( name , ) ) <EOL> left = len ( util . get_instance_names ( ) ) <EOL> while left : <EOL> logging . info ( '<STR_LIT>' , left ) <EOL> time . sleep ( cfg . poll_delay_secs ) <EOL> left = len ( util . get_instance_names ( ) ) <EOL> print <EOL> print '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
