Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTaskAsDaemon ¶
Types ¶
type TaskRunner ¶
func NewTaskRunner ¶
func NewTaskRunner(tasks []Task) *TaskRunner
func (TaskRunner) Run ¶
func (tr TaskRunner) Run() error
func (*TaskRunner) SendStop ¶
func (tr *TaskRunner) SendStop()
func (TaskRunner) WaitTillSignal ¶
func (tr TaskRunner) WaitTillSignal(ctxfn func() context.Context)
type TaskSpec ¶
type TaskSpec struct { Cron string // can be "" if want to run once // https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc#hdr-CRON_Expression_Format RunCronImmediately bool // only applied if cron not "" }
Click to show internal directories.
Click to hide internal directories.