Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCronTaskDuplicated = errors.New("cron task is Duplicated")
)
Functions ¶
func AddCronTask ¶
func CheckTask ¶
func CheckTask()
检查任务状态 1. 将TaskStatusRunning标记为TaskStatusUnexceptedExited 2. 将TaskStatusCompleted并且是定时任务的状态重新启动
func GetMTSChan ¶
func ManageTaskStatus ¶
func ManageTaskStatus()
func RestartTask ¶
Types ¶
type CronTask ¶
type CronTask struct {
// contains filtered or unexported fields
}
func GetCronTask ¶
Click to show internal directories.
Click to hide internal directories.