runtime

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorApiResponse

type ErrorApiResponse struct {
	ErrMessage string         `json:"errorMessage"`
	Data       []ErrorDetails `json:"data"`
}

type ErrorDetails

type ErrorDetails struct {
	Container string `json:"container"`
	Timestamp int64  `json:"timestamp"`
	Code      string `json:"code"`
	Message   string `json:"message"`
	Details   string `json:"details"`
}

ErrorDetails is used to provide information for a container error including timestamp, error code, message and details

type PipelineRuntimeCache

type PipelineRuntimeCache interface {
	// StartCacheRefresher starts the cache refresher to update the local cache with the runtime errors.
	StartCacheRefresher(ctx context.Context) error
	// GetLocalCache returns the local cache of runtime errors for each vertex.
	GetLocalCache() map[string][]ReplicaErrors
}

PipelineRuntimeCache is an interface for caching and retrieving the runtime information.

type PodTracker

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

PodTracker tracks the active pods for each vertex in a pipeline.

func NewPodTracker

func NewPodTracker(ctx context.Context, pl *v1alpha1.Pipeline) *PodTracker

NewPodTracker creates a new pod tracker instance.

func (*PodTracker) GetActivePodsCountForVertex

func (pt *PodTracker) GetActivePodsCountForVertex(vertexName string) int

GetActivePodsCountForVertex returns the number of active pods for a vertex

func (*PodTracker) Start

func (pt *PodTracker) Start(ctx context.Context) error

Start starts the pod tracker to track the active pods for the pipeline.

type ReplicaErrors

type ReplicaErrors struct {
	Replica         string         `json:"replica"`
	ContainerErrors []ErrorDetails `json:"containerErrors"`
}

ReplicaErrors is used to provide all the container errors for a replica

Jump to

Keyboard shortcuts

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