scheduler

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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