Documentation ¶
Index ¶
- Constants
- Variables
- func AddUser()
- func AppendLog(taskId string, taskLogId string, text string)
- func AppendTask(taskId string) error
- func ChangeTaskStatus(taskId string, status bool) error
- func Consumer()
- func InitCron()
- func ReadLog(taskId string, taskLogId string) string
- func StartTask(taskId string, cronExpress string) error
- func StopTask(taskId string)
- func TaskRunner(taskId string)
- type JobParams
Constants ¶
View Source
const DATATIME_FORMAT = "2006-01-02 15:04:05"
Variables ¶
View Source
var CronArray sync.Map
容器
View Source
var TASK_MAP sync.Map
任务队列,用于去重
View Source
var TASK_WAIT_CHANNEL = make(chan string, 10)
等待队列
Functions ¶
func AppendTask ¶
func ChangeTaskStatus ¶
func TaskRunner ¶
func TaskRunner(taskId string)
Types ¶
Click to show internal directories.
Click to hide internal directories.