Help us shape the future of Go! Take the 2026 Go Developer Survey

scheduler

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

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