Merge pull request 'change hpc model structure' (#51) from zhouqunjie/pcm-coordinator:master into master
Former-commit-id: 51843d2899d769ba4e1c1c4c437d9fc9351c4479
This commit is contained in:
commit
eaba4e8c55
|
@ -1,35 +1,49 @@
|
||||||
package client
|
package client
|
||||||
|
|
||||||
|
import (
|
||||||
|
"database/sql"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type HpcInfo struct {
|
type HpcInfo struct {
|
||||||
ParticipantId int64 `json:"participantId,omitempty"`
|
Id int64 `json:"id"` // id
|
||||||
TaskId int64 `json:"taskId,omitempty"`
|
TaskId int64 `json:"task_id"` // 任务id
|
||||||
JobId string `json:"jobId,omitempty"`
|
JobId string `json:"job_id"` // 作业id(在第三方系统中的作业id)
|
||||||
Name string `json:"name,omitempty"`
|
ClusterId int64 `json:"cluster_id"` // 执行任务的集群id
|
||||||
Status string `json:"status,omitempty"`
|
Name string `json:"name"` // 名称
|
||||||
StartTime string `json:"startTime,omitempty"`
|
Status string `json:"status"` // 状态
|
||||||
RunningTime int64 `json:"runningTime,omitempty"`
|
CmdScript string `json:"cmd_script"`
|
||||||
Result string `json:"result,omitempty"`
|
StartTime string `json:"start_time"` // 开始时间
|
||||||
WorkDir string `json:"workDir,omitempty"`
|
RunningTime int64 `json:"running_time"` // 运行时间
|
||||||
WallTime string `json:"wallTime,omitempty"`
|
DerivedEs string `json:"derived_es"`
|
||||||
CmdScript string `json:"cmdScript,omitempty"`
|
Cluster string `json:"cluster"`
|
||||||
DerivedEs string `json:"derivedEs,omitempty"`
|
BlockId int64 `json:"block_id"`
|
||||||
Cluster string `json:"cluster,omitempty"`
|
AllocNodes int64 `json:"alloc_nodes"`
|
||||||
BlockId string `json:"blockId,omitempty"`
|
AllocCpu int64 `json:"alloc_cpu"`
|
||||||
AllocNodes uint32 `json:"allocNodes,omitempty"`
|
CardCount int64 `json:"card_count"` // 卡数
|
||||||
AllocCpu uint32 `json:"allocCpu,omitempty"`
|
Version string `json:"version"`
|
||||||
Version string `json:"version,omitempty"`
|
Account string `json:"account"`
|
||||||
Account string `json:"account,omitempty"`
|
WorkDir string `json:"work_dir"` // 工作路径
|
||||||
ExitCode uint32 `json:"exitCode,omitempty"`
|
AssocId int64 `json:"assoc_id"`
|
||||||
AssocId uint32 `json:"assocId,omitempty"`
|
ExitCode int64 `json:"exit_code"`
|
||||||
AppType string `json:"appType,omitempty"`
|
WallTime string `json:"wall_time"` // 最大运行时间
|
||||||
AppName string `json:"appName,omitempty"`
|
Result string `json:"result"` // 运行结果
|
||||||
Queue string `json:"queue,omitempty"`
|
DeletedAt sql.NullTime `json:"deleted_at"` // 删除时间
|
||||||
SubmitType string `json:"submitType,omitempty"`
|
YamlString string `json:"yaml_string"`
|
||||||
NNode string `json:"nNode,omitempty"`
|
AppType string `json:"app_type"` // 应用类型
|
||||||
StdOutFile string `json:"stdOutFile,omitempty"`
|
AppName string `json:"app_name"` // 应用名称
|
||||||
StdErrFile string `json:"stdErrFile,omitempty"`
|
Queue string `json:"queue"` // 队列名称
|
||||||
StdInput string `json:"stdInput,omitempty"`
|
SubmitType string `json:"submit_type"` // cmd(命令行模式)
|
||||||
Environment string `json:"environment,omitempty"`
|
NNode string `json:"n_node"` // 节点个数(当指定该参数时,GAP_NODE_STRING必须为"")
|
||||||
|
StdOutFile string `json:"std_out_file"` // 工作路径/std.err.%j
|
||||||
|
StdErrFile string `json:"std_err_file"` // 工作路径/std.err.%j
|
||||||
|
StdInput string `json:"std_input"`
|
||||||
|
Environment string `json:"environment"`
|
||||||
|
DeletedFlag int64 `json:"deleted_flag"` // 是否删除(0-否,1-是)
|
||||||
|
CreatedBy int64 `json:"created_by"` // 创建人
|
||||||
|
CreatedTime time.Time `json:"created_time"` // 创建时间
|
||||||
|
UpdatedBy int64 `json:"updated_by"` // 更新人
|
||||||
|
UpdatedTime time.Time `json:"updated_time"` // 更新时间
|
||||||
}
|
}
|
||||||
|
|
||||||
type CloudInfo struct {
|
type CloudInfo struct {
|
||||||
|
|
Loading…
Reference in New Issue