Skip to content

Commit

Permalink
get node list from api/nodes GET result
Browse files Browse the repository at this point in the history
  • Loading branch information
calgray authored and Callan Gray committed Feb 14, 2024
1 parent 4de1329 commit 667f5da
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions daliuge-translator/dlg/dropmake/web/translator_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ def gen_pg(
host=mhost, port=mport, url_prefix=mprefix, timeout=30
)
# 1. get a list of nodes
node_list = mgr_client.nodes()
node_list = mgr_client.nodes()["nodes"]

# 2. mapping PGTP to resources (node list)
pg_spec = pgtp.to_pg_spec(node_list, ret_str=False)

Expand Down Expand Up @@ -812,15 +813,15 @@ class AlgoParams(BaseModel):
Refer to main documentation for more information.
"""

min_goal: Union[int, None]
ptype: Union[int, None]
max_load_imb: Union[int, None]
max_cpu: Union[int, None]
time_greedy: Union[int, None]
deadline: Union[int, None]
topk: Union[int, None]
swarm_size: Union[int, None]
max_mem: Union[int, None]
min_goal: Union[int, None] = None
ptype: Union[int, None] = None
max_load_imb: Union[int, None] = None
max_cpu: Union[int, None] = None
time_greedy: Union[int, None] = None
deadline: Union[int, None] = None
topk: Union[int, None] = None
swarm_size: Union[int, None] = None
max_mem: Union[int, None] = None


class KnownAlgorithms(str, Enum):
Expand Down

0 comments on commit 667f5da

Please sign in to comment.