runtimestate

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicateEvent = errors.New("duplicate event")

Functions

func AddEvent

AddEvent appends a new history event to the orchestration history

func ApplyActions

func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.StringValue, actions []*protos.OrchestratorAction, currentTraceContext *protos.TraceContext) (bool, error)

ApplyActions takes a set of actions and updates its internal state, including populating the outbox.

func CancelPending

func CancelPending(s *protos.OrchestrationRuntimeState)

useful for abruptly stopping any execution of an orchestration from the backend

func IsCompleted

func IsCompleted(s *protos.OrchestrationRuntimeState) bool

func LastUpdatedTime

func LastUpdatedTime(s *protos.OrchestrationRuntimeState) (time.Time, error)

func NewOrchestrationRuntimeState

func NewOrchestrationRuntimeState(instanceID string, customStatus *wrapperspb.StringValue, existingHistory []*protos.HistoryEvent) *protos.OrchestrationRuntimeState

Types

This section is empty.

Jump to

Keyboard shortcuts

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