mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
update
This commit is contained in:
22
src/util.go
22
src/util.go
@@ -21,6 +21,12 @@ type MsgSubmit struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
type MsgPoolStatusHistory struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
Data []map[string]string `json:"data"`
|
||||
}
|
||||
|
||||
type MsgStop struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
@@ -36,6 +42,12 @@ type MsgSummary struct {
|
||||
UsingGPU int `json:"gpu_using"`
|
||||
}
|
||||
|
||||
type MsgResource struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
Resource map[string]NodeStatus `json:"resources"`
|
||||
}
|
||||
|
||||
type MsgJobList struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
@@ -98,9 +110,13 @@ type GPUStatus struct {
|
||||
}
|
||||
|
||||
type NodeStatus struct {
|
||||
ClientID string `json:"id"`
|
||||
ClientHost string `json:"host"`
|
||||
Status []GPUStatus `json:"status"`
|
||||
ClientID string `json:"id"`
|
||||
ClientHost string `json:"host"`
|
||||
NumCPU int `json:"cpu_num"`
|
||||
UtilCPU string `json:"cpu_load"`
|
||||
MemTotal string `json:"mem_total"`
|
||||
MemAvailable string `json:"mem_available"`
|
||||
Status []GPUStatus `json:"status"`
|
||||
}
|
||||
|
||||
type Job struct {
|
||||
|
||||
Reference in New Issue
Block a user