2023-03-23 15:58:12 +08:00
|
|
|
package mq
|
|
|
|
|
|
|
|
const (
|
|
|
|
TaskAdd = iota + 1
|
|
|
|
ModelIssue
|
|
|
|
TaskExecute
|
|
|
|
TaskResponse
|
|
|
|
ModelIssueRepeater
|
|
|
|
ModelIssueResponse
|
2023-04-24 15:14:04 +08:00
|
|
|
TaskExecuteLog
|
|
|
|
TaskLog
|
2023-06-17 09:39:13 +08:00
|
|
|
TrainTaskAdd
|
2023-03-23 15:58:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type InstructionReq struct {
|
|
|
|
Command int `json:"command"`
|
|
|
|
Payload interface{} `json:"payload"`
|
|
|
|
}
|
2023-04-24 15:14:04 +08:00
|
|
|
|
|
|
|
type FileCapture struct {
|
|
|
|
FileId int64 `json:"fileId"`
|
|
|
|
FileName string `json:"fileName"`
|
|
|
|
File string `json:"file"`
|
|
|
|
DatasetName string `json:"datasetName"`
|
|
|
|
CaptureTime int64 `json:"captureTime"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskLogPayload struct {
|
|
|
|
TaskId int64 `json:"taskId"`
|
|
|
|
TaskCode string `json:"taskCode"`
|
|
|
|
NodeId int64 `json:"nodeId"`
|
|
|
|
NodeGuid string `json:"nodeGuid"`
|
|
|
|
Payload string `json:"taskContent"`
|
|
|
|
EventTime int64 `json:"eventTime"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskLogProgress struct {
|
|
|
|
TaskId int64 `json:"taskId"`
|
|
|
|
TotalCount int64 `json:"totalCount"`
|
|
|
|
CompletedCount int64 `json:"completedCount"`
|
|
|
|
FailingCount int64 `json:"failingCount"`
|
|
|
|
UnfinishedCount int64 `json:"unfinishedCount"`
|
|
|
|
}
|