crondsvc

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrondSvc

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

func New

func New(dbClient *dbclient.Client, bdl *bundle.Bundle, js jsonstore.JsonStore) *CrondSvc

func (*CrondSvc) AddIntoPipelineCrond added in v1.1.0

func (s *CrondSvc) AddIntoPipelineCrond(cronID uint64) error

add the timing task of a certain timing id todo Multi-instance watch etcd add key

func (*CrondSvc) CleanBuildCacheImages

func (s *CrondSvc) CleanBuildCacheImages()

func (*CrondSvc) CrondSnapshot

func (s *CrondSvc) CrondSnapshot() []string

func (*CrondSvc) DeletePipelineCrond added in v1.1.0

func (s *CrondSvc) DeletePipelineCrond(cronID uint64) error

delete the timing task of a certain timing id todo Multi-instance watch etcd delete key

func (*CrondSvc) ListenCrond

func (s *CrondSvc) ListenCrond(ctx context.Context, pipelineCronFunc func(id uint64))

Listen the key in the channel decide to delete or add a scheduled task according to the prefix of the key

func (*CrondSvc) ReloadCrond

func (s *CrondSvc) ReloadCrond(ctx context.Context, pipelineCronFunc func(uint64)) ([]string, error)

ReloadCrond 触发当前 crond 实例更新任务.

Jump to

Keyboard shortcuts

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