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

Function prepare_job_client

tests/pyapi/__init__.py:13–18  ·  view source on GitHub ↗
(hq_env: HqEnv, with_worker=True, **job_args)

Source from the content-addressed store, hash-verified

11
12
13def prepare_job_client(hq_env: HqEnv, with_worker=True, **job_args) -> Tuple[Job, Client]:
14 hq_env.start_server()
15 if with_worker:
16 hq_env.start_worker()
17 client = Client(hq_env.server_dir)
18 return (Job(**job_args), client)
19
20
21def hq_env_from_cluster(cluster: LocalCluster) -> HqEnv:

Callers 15

test_single_depFunction · 0.85
test_dep_failedFunction · 0.85
test_submit_pyfunctionFunction · 0.85
test_function_resourcesFunction · 0.85
test_default_workdirFunction · 0.85
test_default_envFunction · 0.85
test_submit_empty_jobFunction · 0.85
test_submit_simpleFunction · 0.85

Calls 4

ClientClass · 0.90
JobClass · 0.90
start_serverMethod · 0.45
start_workerMethod · 0.45

Tested by 15

test_single_depFunction · 0.68
test_dep_failedFunction · 0.68
test_submit_pyfunctionFunction · 0.68
test_function_resourcesFunction · 0.68
test_default_workdirFunction · 0.68
test_default_envFunction · 0.68
test_submit_empty_jobFunction · 0.68
test_submit_simpleFunction · 0.68