Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
65
def
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
74
def
get_slurm_allocation_id() -> Optional[str]:
Callers
8
generate_descriptors
Method · 0.90
generate_descriptors
Method · 0.90
generate_descriptors
Method · 0.90
gen_items
Method · 0.90
generate_descriptors
Method · 0.90
generate_descriptors
Method · 0.90
generate_descriptors
Method · 0.90
generate_descriptors
Method · 0.90
Calls
5
is_inside_pbs
Function · 0.85
PBS
Class · 0.85
is_inside_slurm
Function · 0.85
Slurm
Class · 0.85
Local
Class · 0.85
Tested by
no test coverage detected