Documentation
¶
Overview ¶
Package cron defines those tasks running in the background
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalCron *cron.Cron
Functions ¶
This section is empty.
Types ¶
type TaskRunner ¶
type TaskRunner struct {
Ctx *config.AppContext `inject:""`
}
TaskRunner manages the background tasks
func (*TaskRunner) GlobalRun ¶
func (tr *TaskRunner) GlobalRun()
GlobalRun runs cluster-wise background task, only one node is allowed to run this
Click to show internal directories.
Click to hide internal directories.