Example #1
0
 def execute_batch(self, max_nodes, ami, instance_type):
     batch_id = 'batch-%s' % uuid.uuid4()
     batch = Batch('received')
     batch.ami = ami
     batch.instance_type = instance_type
     batch.max_nodes = max_nodes
     self.client.set(batch_id, pickle.dumps(batch))
     self.client.publish('batches', batch_id)
     return batch_id
Example #2
0
 def execute_batch(self, max_nodes, ami, instance_type):
     batch_id = 'batch-%s' % uuid.uuid4()
     batch = Batch('received')
     batch.ami = ami
     batch.instance_type = instance_type
     batch.max_nodes = max_nodes
     self.client.set(batch_id, pickle.dumps(batch))
     self.client.publish('batches', batch_id)
     return batch_id
Example #3
0
 def execute_batch(self, max_nodes, ami, instance_type, email=''):
     batch_id = 'batch-%s' % str(uuid.uuid4())[31:36]
     batch = Batch('received')
     batch.ami = ami
     batch.instance_type = instance_type
     batch.max_nodes = max_nodes
     batch.email = email
     self.client.set(batch_id, pickle.dumps(batch))
     self.client.publish('batches', batch_id)
     return batch_id