Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/m/i/minos-HEAD/client/deploy_utils.py   minos(Download)
def get_base_port(base_port, instance_id):
  return service_config.get_base_port(base_port, instance_id)
 
def get_http_service_uri(host, base_port, instance_id):
  return 'http://%s:%d' % (host,

src/m/i/minos-HEAD/client/deploy_hdfs.py   minos(Download)
    for instance_id in range(hosts[host_id].instance_num):
      if not deploy_utils.check_service(hosts[host_id].ip,
        service_config.get_base_port(job.base_port, instance_id)):
        return False
  return True