Skip to content

Commit 34942db

Browse files
committed
Merge branch 'master' into feat-delete-user-account
2 parents f3defc7 + 9d5a354 commit 34942db

File tree

7 files changed

+60
-3
lines changed

7 files changed

+60
-3
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @scow/scow-scheduler-adapter-interface
22

3+
## 1.6.0
4+
5+
### Minor Changes
6+
7+
- eb952d6: 新增获取集群节点信息接口 GetClusterNodesInfo
8+
在 getJobsRequest 中增加兼容型参数 job_id 和 job_name
9+
310
## 1.5.0
411

512
### Minor Changes

changelogs/v1.6.0.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# v1.6.0
2+
3+
发布于:2024/8/1 21:29:58
4+
5+
## 重要更新
6+
- 新增获取集群节点信息接口 GetClusterNodesInfo
7+
在 getJobsRequest 中增加兼容型参数 job_id 和 job_name ([eb952d63](https://github.com/PKUHPC/SCOW/commit/eb952d633bc92a68e41143ce79b1c6dfa6d73a21))
8+
9+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scow/scow-scheduler-adapter-interface",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "Interface for SCOW to call schedulers",
55
"author": "PKUHPC (https://github.com/PKUHPC)",
66
"repository": "https://github.com/PKUHPC/SCOW",

protos/account.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ service AccountService {
133133
* NOT_FOUND, ACCOUNT_NOT_FOUND, {}
134134
*/
135135
rpc QueryAccountBlockStatus(QueryAccountBlockStatusRequest) returns (QueryAccountBlockStatusResponse);
136-
136+
137137
/*
138138
* description: delete account
139139
* errors:
140140
* - account not exist
141141
* NOT_FOUND, ACCOUNT_NOT_FOUND, {}
142142
*/
143143
rpc DeleteAccount(DeleteAccountRequest) returns (DeleteAccountResponse);
144-
}
144+
}

protos/app.proto

+1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ service AppService {
4242
* Sometimes it needs to provide password for app
4343
*/
4444
rpc GetAppConnectionInfo(GetAppConnectionInfoRequest) returns (GetAppConnectionInfoResponse);
45+
4546
}

protos/config.proto

+36
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,38 @@ message GetClusterInfoResponse {
8686
repeated PartitionInfo partitions = 2;
8787
}
8888

89+
message NodeInfo {
90+
91+
enum NodeState {
92+
UNKNOWN = 0;
93+
IDLE = 1;
94+
RUNNING = 2;
95+
NOT_AVAILABLE = 3;
96+
}
97+
98+
string node_name = 1;
99+
repeated string partitions = 2;
100+
NodeState state = 3;
101+
uint32 cpu_core_count = 4;
102+
uint32 alloc_cpu_core_count = 5;
103+
uint32 idle_cpu_core_count = 6;
104+
uint32 total_mem_mb = 7;
105+
uint32 alloc_mem_mb = 8;
106+
uint32 idle_mem_mb = 9;
107+
uint32 gpu_count = 10;
108+
uint32 alloc_gpu_count = 11;
109+
uint32 idle_gpu_count = 12;
110+
}
111+
112+
message GetClusterNodesInfoRequest {
113+
// if the value of node_names = [], request all nodes info
114+
repeated string node_names = 1;
115+
}
116+
117+
message GetClusterNodesInfoResponse {
118+
repeated NodeInfo nodes = 1;
119+
}
120+
89121
service ConfigService {
90122
/*
91123
* description: get cluster config
@@ -99,4 +131,8 @@ service ConfigService {
99131
* description: get cluster information
100132
*/
101133
rpc GetClusterInfo(GetClusterInfoRequest) returns (GetClusterInfoResponse);
134+
/*
135+
* description: get cluster nodes information
136+
*/
137+
rpc GetClusterNodesInfo(GetClusterNodesInfoRequest) returns (GetClusterNodesInfoResponse);
102138
}

protos/job.proto

+4
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ message GetJobsRequest {
104104
optional TimeRange submit_time = 4;
105105
// if set this field, return jobs that ended between the time range(both endpoints included)
106106
optional TimeRange end_time = 5;
107+
108+
optional uint32 job_id = 6;
109+
optional string job_name = 7;
107110
}
108111
// specify filter options
109112
optional Filter filter = 2;
@@ -114,6 +117,7 @@ message GetJobsRequest {
114117

115118
// returned jobs should be sorted if set
116119
optional SortInfo sort = 4;
120+
117121
}
118122

119123
message GetJobsResponse {

0 commit comments

Comments
 (0)