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

Function wait_for_pid_exit

tests/utils/wait.py:106–110  ·  view source on GitHub ↗

Waits until the given `pid` does not represent any process anymore.

(pid: int)

Source from the content-addressed store, hash-verified

104
105
106def wait_for_pid_exit(pid: int):
107 """
108 Waits until the given `pid` does not represent any process anymore.
109 """
110 wait_until(lambda: not psutil.pid_exists(pid))
111
112
113def wait_for_job_list_count(env, count: int):

Calls 1

wait_untilFunction · 0.70