1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2019-04-16 16:59:19 +08:00
parent e34d75dc7f
commit 1504c71fb4
7 changed files with 45 additions and 41 deletions

View File

@@ -64,6 +64,7 @@ type MsgCreate struct {
type TaskStatus struct {
Id string `json:"id"`
Name string `json:"name"`
Node string `json:"node"`
Image string `json:"image"`
ImageDigest string `json:"image_digest"`
Command string `json:"command"`
@@ -77,7 +78,7 @@ type JobStatus struct {
tasks map[string]TaskStatus
}
type NodeStatus struct {
type GPUStatus struct {
UUID string `json:"uuid"`
ProductName string `json:"product_name"`
PerformanceState string `json:"performance_state"`
@@ -91,10 +92,10 @@ type NodeStatus struct {
PowerDraw int `json:"power_draw"`
}
type MsgAgent struct {
ClientID int `json:"code"`
ClientHost string `json:"host"`
Status []NodeStatus `json:"status"`
type NodeStatus struct {
ClientID int `json:"code"`
ClientHost string `json:"host"`
Status []GPUStatus `json:"status"`
}
type Job struct {