-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(portal-server): 新增 scowd GetAppLastSubmission 接口及其在 scow 中的调用 (#…
…1394) 新增 scowd app service 和 GetAppLastSubmission 接口,并实现其在 scow 中的调用 由于目前只实现这一个接口,所以没有将 app service 中 ssh 和 scowd 像文件服务和桌面服务那样完全区分开 scowd 实现:PKUHPC/SCOWD#11
- Loading branch information
1 parent
d3de802
commit ac6805d
Showing
4 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@scow/portal-server": patch | ||
"@scow/scowd-protos": patch | ||
"@scow/lib-scowd": patch | ||
--- | ||
|
||
scowd 新增 app service 和 GetAppLastSubmission 接口 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
syntax = "proto3"; | ||
|
||
package services.app; | ||
|
||
option go_package = "scowd/protos/gen/api/application;apiv1"; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
message SubmissionInfo { | ||
string user_id = 1; | ||
string cluster = 2; | ||
string app_id = 3; | ||
string app_name =4; | ||
string account = 5; | ||
optional string partition = 6; | ||
optional string qos = 7; | ||
uint32 core_count = 8; | ||
uint32 max_time = 9; | ||
google.protobuf.Timestamp submit_time = 10; | ||
map<string, string> custom_attributes = 11; | ||
uint32 node_count = 12; | ||
optional uint32 gpu_count = 13; | ||
} | ||
|
||
message GetAppLastSubmissionRequest { | ||
string user_id = 1; | ||
string file_path = 2; | ||
} | ||
|
||
message GetAppLastSubmissionResponse { | ||
SubmissionInfo file_data = 1; | ||
} | ||
|
||
|
||
service AppService { | ||
rpc GetAppLastSubmission(GetAppLastSubmissionRequest) returns (GetAppLastSubmissionResponse) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters