taskExecute/mq/instruction.go

39 lines
902 B
Go
Raw Permalink Normal View History

2023-03-23 14:35:24 +08:00
package mq
const (
TaskAdd = iota + 1
ModelIssue
TaskExecute
TaskResponse
ModelIssueRepeater
ModelIssueResponse
TaskExecuteLog
2023-03-23 14:35:24 +08:00
)
type InstructionReq struct {
Command int `json:"command"`
Payload interface{} `json:"payload"`
}
type TaskResponseBody struct {
Code int `json:"code"`
TaskId int64 `json:"taskId"`
TaskCode string `json:"taskCode"`
NodeId int64 `json:"nodeId"`
ModelId int64 `json:"modelId"`
FileId int64 `json:"fileId"`
2023-03-24 08:50:34 +08:00
SrcPath string `json:"srcPath"`
DatasetArr string `json:"datasetArr"`
2023-03-23 14:35:24 +08:00
StartTime int64 `json:"startTime"`
FinishTime int64 `json:"finishTime"`
Msg string `json:"msg"`
Body string `json:"body"`
}
type TaskExecuteLogStruct struct {
TaskId int64 `json:"taskId"`
TaskCode string `json:"taskCode"`
NodeGuid string `json:"nodeGuid"`
Payload interface{} `json:"payload"`
}