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

Function get_active_nodes

benchmarks/src/clusterutils/node_list.py:65–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def get_active_nodes() -> NodeList:
66 if is_inside_pbs():
67 return PBS()
68 elif is_inside_slurm():
69 return Slurm()
70 else:
71 return Local()
72
73
74def get_slurm_allocation_id() -> Optional[str]:

Callers 8

generate_descriptorsMethod · 0.90
generate_descriptorsMethod · 0.90
generate_descriptorsMethod · 0.90
gen_itemsMethod · 0.90
generate_descriptorsMethod · 0.90
generate_descriptorsMethod · 0.90
generate_descriptorsMethod · 0.90
generate_descriptorsMethod · 0.90

Calls 5

is_inside_pbsFunction · 0.85
PBSClass · 0.85
is_inside_slurmFunction · 0.85
SlurmClass · 0.85
LocalClass · 0.85

Tested by

no test coverage detected