scheduling

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Starter

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

Starter auto-configures the scheduling stack when robfig/cron is available.

func New

func New(cfg helixconfig.Loader) *Starter

New creates a Starter using the provided configuration loader.

func (*Starter) Condition

func (s *Starter) Condition() bool

Condition reports whether the scheduling starter should be activated.

func (*Starter) ConditionFromContainer

func (s *Starter) ConditionFromContainer(container *core.Container) bool

ConditionFromContainer evaluates the scheduling starter activation after application components have been registered.

Priority (highest to lowest):

  1. helix.starters.scheduling.enabled = false → inactive (absolute override)
  2. helix.starters.scheduling.enabled = true → active (absolute override)
  3. robfig/cron absent from go.mod → inactive (missing runtime dependency)
  4. container holds a scheduler.ScheduledJobProvider → active (component marker)
  5. otherwise → inactive

func (*Starter) Configure

func (s *Starter) Configure(container *core.Container) error

Configure registers scheduling components into the DI container.

Jump to

Keyboard shortcuts

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