Documentation ¶
Overview ¶
worker执行模块worker负责在本地执行调度模块发送的命令,并将输出信息返回给调度模块。 worker执行时会启动http服务监听8123端口,提供RPC调用接口CmdExecuter.Run()方法。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Task ¶
type Task struct { Id int64 // 任务的ID Address string // 任务的执行地址 Name string // 任务名称 JobType string // 任务类型 Cyc string //调度周期 StartSecond int64 //周期内启动时间 Cmd string // 任务执行的命令或脚本、函数名等。 TimeOut int64 // 设定超时时间,0表示不做超时限制。单位秒 Param []string // 任务的参数信息 Attr map[string]string // 任务的属性信息 JobId int64 //所属作业ID RelTasks map[string]*Task //依赖的任务 RelTaskCnt int64 //依赖的任务数量 }
任务信息结构
Click to show internal directories.
Click to hide internal directories.