task

package
v1.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecTypeGroup = "group"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func GlobalFactory

func GlobalFactory() *Factory

func Init added in v1.0.7

func Init(repo *Repo) *Factory

func (*Factory) AddCron

func (t *Factory) AddCron(id uint32, spec string) error

func (*Factory) CancelExec added in v1.0.7

func (t *Factory) CancelExec(ctx kratosx.Context, uuid string) error

func (*Factory) Close

func (t *Factory) Close()

func (*Factory) DrySpec

func (t *Factory) DrySpec(s string) bool

func (*Factory) RemoveCron

func (t *Factory) RemoveCron(id uint32) error

func (*Factory) Scheduler

func (t *Factory) Scheduler(id uint32, force bool) error

func (*Factory) UpdateCron

func (t *Factory) UpdateCron(id uint32, spec string) error

type Repo

type Repo struct {
	Task   task.Repo
	Log    log.Repo
	Worker worker.Repo
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL