Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIU-378 Get node list from api/nodes GET result #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading