transform

package
v1.30.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToNode

func ToNode(n *execution.Node) *runtime.Node

ToNode converts a persistence Node back to a runtime Node

Types

type StatusBuilder

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

StatusBuilder creates Status objects for a specific DAG

func NewStatusBuilder

func NewStatusBuilder(dag *core.DAG) *StatusBuilder

NewStatusBuilder creates a new StatusFactory for the specified DAG

func (*StatusBuilder) Create

func (f *StatusBuilder) Create(
	dagRunID string,
	status core.Status,
	pid int,
	startedAt time.Time,
	opts ...StatusOption,
) execution.DAGRunStatus

Create builds a Status object for a dag-run with the specified parameters

type StatusOption

type StatusOption func(*execution.DAGRunStatus)

StatusOption is a functional option pattern for configuring Status objects

func WithAttemptID

func WithAttemptID(attemptID string) StatusOption

func WithCreatedAt

func WithCreatedAt(t int64) StatusOption

WithCreatedAt returns a StatusOption that sets the created time

func WithError added in v1.27.0

func WithError(err string) StatusOption

WithError returns a StatusOption that sets the top-level error message

func WithFinishedAt

func WithFinishedAt(t time.Time) StatusOption

WithFinishedAt returns a StatusOption that sets the finished time

func WithHierarchyRefs

func WithHierarchyRefs(root execution.DAGRunRef, parent execution.DAGRunRef) StatusOption

WithHierarchyRefs returns a StatusOption that sets the root DAG information

func WithLogFilePath

func WithLogFilePath(logFilePath string) StatusOption

WithLogFilePath returns a StatusOption that sets the log file path

func WithNodes

func WithNodes(nodes []runtime.NodeData) StatusOption

WithNodes returns a StatusOption that sets the node data for the status

func WithOnCancelNode

func WithOnCancelNode(node *runtime.Node) StatusOption

WithOnCancelNode returns a StatusOption that sets the cancel handler node

func WithOnExitNode

func WithOnExitNode(node *runtime.Node) StatusOption

WithOnExitNode returns a StatusOption that sets the exit handler node

func WithOnFailureNode

func WithOnFailureNode(node *runtime.Node) StatusOption

WithOnFailureNode returns a StatusOption that sets the failure handler node

func WithOnInitNode added in v1.26.0

func WithOnInitNode(node *runtime.Node) StatusOption

WithOnInitNode returns a StatusOption that sets the init handler node

func WithOnSuccessNode

func WithOnSuccessNode(node *runtime.Node) StatusOption

WithOnSuccessNode returns a StatusOption that sets the success handler node

func WithOnWaitNode added in v1.30.0

func WithOnWaitNode(node *runtime.Node) StatusOption

WithOnWaitNode returns a StatusOption that sets the wait handler node

func WithPreconditions

func WithPreconditions(conditions []*core.Condition) StatusOption

WithPreconditions returns a StatusOption that sets the preconditions

func WithQueuedAt

func WithQueuedAt(formattedTime string) StatusOption

WithQueuedAt returns a StatusOption that sets the finished time

func WithWorkerID added in v1.30.0

func WithWorkerID(workerID string) StatusOption

WithWorkerID returns a StatusOption that sets the worker ID

Jump to

Keyboard shortcuts

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