- if (want_count < self.max_nodes) and (cloud_size is not None):
- servers.extend([cloud_size.real] * max(1, want_count))
+ if cloud_size is None:
+ if job['uuid'] not in self.logged_jobs:
+ self.logged_jobs.add(job['uuid'])
+ self.logger.debug("job %s not satisfiable", job['uuid'])
+ elif (want_count <= self.max_nodes) and (want_count*cloud_size.price <= self.max_price):
+ servers.extend([cloud_size.real] * want_count)
+ self.logged_jobs.intersection_update(seen_jobs)