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

Function wait_for_worker_state

tests/utils/wait.py:79–80  ·  view source on GitHub ↗
(env, ids: Union[int, List[int]], target_states: Union[str, List[str]], **kwargs)

Source from the content-addressed store, hash-verified

77
78
79def wait_for_worker_state(env, ids: Union[int, List[int]], target_states: Union[str, List[str]], **kwargs):
80 wait_for_state(env, ids, target_states, ["worker", "list", "--all"], 1, **kwargs)
81
82
83def wait_for_task_state(env, job_id: int, task_ids: Union[int, List[int]], states: Union[str, List[str]], **kwargs):

Callers 15

test_worker_listFunction · 0.85
test_worker_stopFunction · 0.85
test_worker_stop_someFunction · 0.85
test_worker_stop_allFunction · 0.85
test_worker_stop_lastFunction · 0.85
test_worker_time_limitFunction · 0.85
test_worker_addressFunction · 0.85

Calls 1

wait_for_stateFunction · 0.85

Tested by 15

test_worker_listFunction · 0.68
test_worker_stopFunction · 0.68
test_worker_stop_someFunction · 0.68
test_worker_stop_allFunction · 0.68
test_worker_stop_lastFunction · 0.68
test_worker_time_limitFunction · 0.68
test_worker_addressFunction · 0.68