scheduler

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 19 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 Options

type Options struct {
	Namespace        string
	AppID            string
	Actors           actors.Interface
	Channels         *channels.Channels
	WFEngine         wfengine.Interface
	WorkflowSpec     *config.WorkflowSpec
	Addresses        []string
	Security         security.Handler
	Healthz          healthz.Healthz
	SchedulerStreams uint

	// PlacementAddresses are the placement service addresses this daprd was
	// configured with, reported to the schedulers so they can detect a
	// placement service outside the well-known service name.
	PlacementAddresses []string
	// ActorAddress is the daprd internal gRPC host:port reported on
	// WatchJobs streams, so schedulers route actor reminder triggers to
	// the placement owner host.
	ActorAddress string
}

type Scheduler added in v1.15.0

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

Scheduler manages the connection to the cluster of schedulers.

func New

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

func (*Scheduler) Client added in v1.15.6

func (s *Scheduler) Client() client.Interface

func (*Scheduler) Leadership added in v1.19.0

func (s *Scheduler) Leadership() *leadership.Leadership

Leadership returns the store tracking the scheduler placement leader as observed on the WatchHosts stream.

func (*Scheduler) ReloadActorTypes added in v1.15.6

func (s *Scheduler) ReloadActorTypes(actorTypes []string)

func (*Scheduler) Run added in v1.15.0

func (s *Scheduler) Run(ctx context.Context) error

func (*Scheduler) StartApp added in v1.15.0

func (s *Scheduler) StartApp()

func (*Scheduler) StopApp added in v1.15.0

func (s *Scheduler) StopApp()

Directories

Path Synopsis
internal
Package leadership tracks the scheduler placement leader as observed on the WatchHosts stream, for consumers (the actor placement client) which need to connect to the current leader and react to leadership changes.
Package leadership tracks the scheduler placement leader as observed on the WatchHosts stream, for consumers (the actor placement client) which need to connect to the current leader and react to leadership changes.

Jump to

Keyboard shortcuts

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