Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OneOffCron *cron.Cron PeriodicCron *cron.Cron )
Functions ¶
func AddOneOffTask ¶
提供任务将在未来执行的时间、任务function,添加至一次性计划任务队列
func GetOneOffEntryNextExcTime ¶
根据entry_id取出这个entry,返回这个entry的下次执行时间。由于是个一次性任务,如果返回值是零值time.Time{},则说明已经完成。 Next time the job will run, or the zero time if Cron has not been started or this entry's schedule is unsatisfiable
Types ¶
Click to show internal directories.
Click to hide internal directories.