rpc client初始化
Former-commit-id: 6bf0776d9e78e63592fd009d9b9a24c678cb4663
This commit is contained in:
parent
d3d353096b
commit
14014ee229
|
@ -35,7 +35,7 @@ func (l *ScheduleTaskByYamlLogic) ScheduleTaskByYaml(req *types.ScheduleTaskByYa
|
|||
}
|
||||
// 构建主任务结构体
|
||||
taskModel := models.Task{
|
||||
Status: constants.TASK_STATUS_SAVED,
|
||||
Status: constants.Saved,
|
||||
Description: req.Description,
|
||||
Name: req.Name,
|
||||
YamlString: string(bytes),
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
package constants
|
||||
|
||||
const (
|
||||
Kubernetes = "Kubernetes"
|
||||
Slurm = "Slurm"
|
||||
)
|
|
@ -2,12 +2,5 @@ package constants
|
|||
|
||||
// 任务类型
|
||||
const (
|
||||
TASK_TYPE_CLOUD = 1
|
||||
TASK_TYPE_HPC = 2
|
||||
TASK_TYPE_AI = 3
|
||||
)
|
||||
|
||||
const (
|
||||
Kubernetes = "Kubernetes"
|
||||
Slurm = "Slurm"
|
||||
Saved = "Saved"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue