Lines Matching refs:host_objects
290 def check_job_dependencies(host_objects, job_dependencies): argument
297 host_ids = [host.id for host in host_objects]
314 failing_hosts = (set(host.hostname for host in host_objects) -
482 def check_for_duplicate_hosts(host_objects): argument
483 host_counts = collections.Counter(host_objects)
493 def create_new_job(owner, options, host_objects, metahost_objects): argument
494 all_host_objects = host_objects + metahost_objects
504 check_for_duplicate_hosts(host_objects)
514 check_job_dependencies(host_objects, dependencies)
790 host_objects = models.Host.smart_get_bulk(hosts)
791 _validate_host_job_sharding(host_objects)
794 host_objects.append(this_host)
830 host_objects=host_objects,
834 def _validate_host_job_sharding(host_objects): argument
837 or _allowed_hosts_for_main_job(host_objects)):
838 shard_host_map = bucket_hosts_by_shard(host_objects)
845 def _allowed_hosts_for_main_job(host_objects): argument
852 shard_host_map = bucket_hosts_by_shard(host_objects)
858 assert len(hosts_on_shard) <= len(host_objects)
859 return len(hosts_on_shard) == len(host_objects)