Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 29787168 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

[backend] state

parent 267a248e
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,7 @@ def _fetch_and_parse_oarnodes_dict() -> tuple[dict, list[str]]: ...@@ -114,6 +114,7 @@ def _fetch_and_parse_oarnodes_dict() -> tuple[dict, list[str]]:
gpu_model_name: str = PRETTY_GPU_MODELS[core_dict['gputype']] gpu_model_name: str = PRETTY_GPU_MODELS[core_dict['gputype']]
nodes_dict[host] = { nodes_dict[host] = {
'gpu_model': f"{gpu_model_name} ({core_dict['gpumem']}GB)", 'gpu_model': f"{gpu_model_name} ({core_dict['gpumem']}GB)",
'state': core_dict['state'],
'gpus': {}, 'gpus': {},
'running_jobs': {} 'running_jobs': {}
} }
...@@ -206,8 +207,7 @@ def _fetch_and_parse_oarstat_dict(jobs_list: list[str]) -> dict: ...@@ -206,8 +207,7 @@ def _fetch_and_parse_oarstat_dict(jobs_list: list[str]) -> dict:
return oarstat_filtered_dict return oarstat_filtered_dict
def _merge(nodes_dict: dict, def _merge(nodes_dict: dict, jobs_dict: dict) -> dict:
jobs_dict: dict) -> dict:
output_dict: dict = {} output_dict: dict = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment