def METHOD_NAME(name, job_type):
  logging_cmd = "arena logs -f %s" % (name)
  process = Popen(split(logging_cmd), stdout = PIPE, stderr = PIPE, encoding='utf8')
  while True:
    output = process.stdout.readline()
    if output == "" and process.poll() is not None:
      break
    if output:
      # print("", output.strip())
      logging.info(output.strip())
  rc = process.poll()
  return rc