def start():
    client = crane_ec2.Client()
    signal.signal(signal.SIGHUP, huphandler)
    signal.signal(signal.SIGTERM, termhandler)
    creator.set_model(Instance)
    creator.build_queue()
    creator.start_creator(DatabaseManager, client)
Beispiel #2
0
def start():
    client = crane_ec2.Client()
    signal.signal(signal.SIGHUP, huphandler)
    signal.signal(signal.SIGTERM, termhandler)
    creator.set_model(Instance)
    creator.build_queue()
    creator.start_creator(DatabaseManager, client)
 def setUpClass(cls):
     cls.conn = Connection(hostname="localhost", username="******")
     cls.conn.open()
     cls.old_poll_interval = settings.EC2_POLL_INTERVAL
     settings.EC2_POLL_INTERVAL = 0
     set_model(Instance)
 def setUpClass(cls):
     cls.conn = Connection(hostname="localhost", username="******")
     cls.conn.open()
     cls.old_poll_interval = settings.EC2_POLL_INTERVAL
     settings.EC2_POLL_INTERVAL = 0
     set_model(Instance)