schedule

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package schedule provides explicit correlation lifecycle helpers for scheduled work. Independent invocations start independent workflows unless application-owned metadata is deliberately propagated.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidOptions = errors.New("schedule correlation: invalid options")

ErrInvalidOptions reports missing scheduled-work dependencies.

Functions

This section is empty.

Types

type Adapter

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

Adapter starts independent runs and explicitly propagates scheduled jobs.

func New

func New(factory *correlation.Factory, options Options) (*Adapter, error)

New constructs a scheduled-work adapter.

func (*Adapter) Enqueue

func (adapter *Adapter) Enqueue(metadata map[string]string, parent correlation.Values) (correlation.Values, error)

Enqueue creates a child scheduled-work message.

func (*Adapter) Run

func (adapter *Adapter) Run(metadata map[string]string, trusted bool) (correlation.Values, error)

Run receives explicitly trusted scheduler metadata as a fresh attempt.

func (*Adapter) Start

func (adapter *Adapter) Start() (correlation.Values, error)

Start begins an independent scheduler invocation with no implicit derived or stable workflow identity.

type Options

type Options struct {
	Queue queuecorrelation.Options
}

Options configure optional scheduled metadata propagation.

Jump to

Keyboard shortcuts

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