MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / get_pid

Function get_pid

tests/utils/io.py:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 wait_for_job_state(hq_env, job_id, "RUNNING")
40
41 def get_pid():
42 pid = read_file(default_task_output(job_id=job_id)).strip()
43 if not pid:
44 return None
45 return int(pid)
46
47 return wait_until(get_pid)

Callers

nothing calls this directly

Calls 2

read_fileFunction · 0.85
default_task_outputFunction · 0.85

Tested by

no test coverage detected