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

Function test_cluster_add_worker

tests/pyapi/test_cluster.py:31–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_cluster_add_worker():
32 with LocalCluster() as cluster:
33 cluster.start_worker()
34 client = cluster.client()
35 job = Job()
36 job.program(["echo", "hello"], stdout="out.txt")
37 job_id = client.submit(job)
38 client.wait_for_jobs([job_id])
39
40 check_file_contents("out.txt", "hello\n")
41
42
43def test_cluster_worker_cores():

Callers

nothing calls this directly

Calls 8

programMethod · 0.95
LocalClusterClass · 0.90
JobClass · 0.90
check_file_contentsFunction · 0.50
start_workerMethod · 0.45
clientMethod · 0.45
submitMethod · 0.45
wait_for_jobsMethod · 0.45

Tested by

no test coverage detected