Browse Source

联邦应用学习

pull/54/head
jagger 4 months ago
parent
commit
1cb0313cb1
2 changed files with 4 additions and 14 deletions
  1. +3
    -0
      sdks/scheduler/app.go
  2. +1
    -14
      sdks/scheduler/app_models.go

+ 3
- 0
sdks/scheduler/app.go View File

@@ -39,6 +39,9 @@ type AppInstance struct {
CreatedAt time.Time `json:"createdAt"` // 创建时间 CreatedAt time.Time `json:"createdAt"` // 创建时间
UpdatedAt time.Time `json:"updatedAt"` // 更新时间 UpdatedAt time.Time `json:"updatedAt"` // 更新时间
DeletedAt time.Time `json:"-"` // 删除时间 DeletedAt time.Time `json:"-"` // 删除时间

//回显应用状态
Status string `json:"status"` //应用状态
} }


type AppRunRecordDao struct { type AppRunRecordDao struct {


+ 1
- 14
sdks/scheduler/app_models.go View File

@@ -55,24 +55,11 @@ type FederatedLearningAppInfo struct {
IsDataReturn bool `json:"isDataReturn"` // 是否需要数据回源 IsDataReturn bool `json:"isDataReturn"` // 是否需要数据回源
ParticipantInfo ParticipantInfo `json:"participantInfo"` ParticipantInfo ParticipantInfo `json:"participantInfo"`
ParticipantIDs []ParticipantID `json:"participantIDs"` //参与者ID列表 ParticipantIDs []ParticipantID `json:"participantIDs"` //参与者ID列表

//ParticipantCount int `json:"participantCount"` //参与者人数
//JobResources JobResources `json:"jobResources"` //作业资源
//JobInfo JobInfo `json:"jobInfo"`
//ClientObjectID cdssdk.ObjectID `json:"clientObjectID"` //client代码
//ServerObjectID cdssdk.ObjectID `json:"serverObjectID"` //server代码
//ModelBindID cdssdk.ObjectID `json:"modelBindID"` //模型绑定id
//DatasetBindID cdssdk.ObjectID `json:"datasetBindID"` //数据集绑定id
//ImageBindID cdssdk.ObjectID `json:"imageBindID"` //镜像绑定id
//JobSetID JobSetID `json:"jobSetID"` //工作集ID
//Role string `json:"role"` //角色,initiator/participant
//DataReturnJobInfo DataReturnJobInfo `json:"dataReturnJobInfo"` //数据返回作业信息

JoinedCount int64 `json:"joinedCount"` //已经参与的人数
} }


type ParticipantInfo struct { type ParticipantInfo struct {
DatasetBindID cdssdk.ObjectID `json:"datasetBindID"` //数据集绑定id DatasetBindID cdssdk.ObjectID `json:"datasetBindID"` //数据集绑定id
ParticipantID ParticipantID `json:"participantID"`
} }


type OtherAppInfo struct { type OtherAppInfo struct {


Loading…
Cancel
Save