rpc client初始化

Former-commit-id: 6bf0776d9e78e63592fd009d9b9a24c678cb4663
This commit is contained in:
zhangwei 2023-09-27 14:49:52 +08:00
parent d3d353096b
commit 14014ee229
3 changed files with 8 additions and 9 deletions

View File

@ -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),

View File

@ -0,0 +1,6 @@
package constants
const (
Kubernetes = "Kubernetes"
Slurm = "Slurm"
)

View File

@ -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"
)