scheduler

package
v1.14.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages connections to multiple schedulers.

func New

func New(opts Options) (*Manager, error)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Run starts watching for job triggers from all scheduler clients.

func (*Manager) SetClients

func (m *Manager) SetClients(clients *clients.Clients)

func (*Manager) Start

func (m *Manager) Start(actors actors.ActorRuntime)

Start starts the scheduler manager with the given actors runtime, if it is enabled, to begin receiving job triggers.

func (*Manager) Stop

func (m *Manager) Stop()

Stop stops the scheduler manager, which stops watching for job triggers.

type Options

type Options struct {
	Namespace string
	AppID     string
	Clients   *clients.Clients
	Channels  *channels.Channels
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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