resolver

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultStateResolverParams = StateResolverParams{
	MaxWaitAttempts: 500,
	WaitDelay:       20 * time.Millisecond,
}

Functions

This section is empty.

Types

type CheckStateFunction

type CheckStateFunction func(*models.Execution) (bool, error)

func CheckCompleted

func CheckCompleted() CheckStateFunction

func CheckForState

func CheckForState(expectedStates ...models.ExecutionStateType) CheckStateFunction

func CheckForTerminalStates

func CheckForTerminalStates() CheckStateFunction

func CheckForUnexpectedState

func CheckForUnexpectedState(expectedStates ...models.ExecutionStateType) CheckStateFunction

type StateResolver

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

func NewStateResolver

func NewStateResolver(params StateResolverParams) *StateResolver

func (*StateResolver) Wait

func (r *StateResolver) Wait(
	ctx context.Context,
	executionID string,
	checkStateFunctions ...CheckStateFunction) error

type StateResolverParams

type StateResolverParams struct {
	ExecutionStore  store.ExecutionStore
	MaxWaitAttempts int
	WaitDelay       time.Duration
}

Jump to

Keyboard shortcuts

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