temporal

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestWorkflowID

func GetTestWorkflowID(versionID, taskQueue string) string

GetTestWorkflowID generates a workflowID for test workflows

func GetTestWorkflowStatus

func GetTestWorkflowStatus(
	ctx context.Context,
	client temporalClient.Client,
	workerDeploymentName string,
	versionID string,
	workerDeploy *temporaliov1alpha1.TemporalWorkerDeployment,
	temporalState *TemporalWorkerState,
) ([]temporaliov1alpha1.WorkflowExecution, error)

GetTestWorkflowStatus queries Temporal to get the status of test workflows for a version

Types

type TemporalWorkerState

type TemporalWorkerState struct {
	CurrentVersionID     string
	VersionConflictToken []byte
	RampingVersionID     string
	RampPercentage       float32
	// RampingSince is the time when the current ramping version was set.
	RampingSince         *metav1.Time
	RampLastModifiedAt   *metav1.Time
	Versions             map[string]*VersionInfo
	LastModifierIdentity string
}

TemporalWorkerState represents the state of a worker deployment in Temporal

func GetWorkerDeploymentState

func GetWorkerDeploymentState(
	ctx context.Context,
	client temporalClient.Client,
	workerDeploymentName string,
	namespace string,
) (*TemporalWorkerState, error)

GetWorkerDeploymentState queries Temporal to get the state of a worker deployment

type VersionInfo

type VersionInfo struct {
	VersionID     string
	Status        temporaliov1alpha1.VersionStatus
	DrainedSince  *time.Time
	TaskQueues    []temporaliov1alpha1.TaskQueue
	TestWorkflows []temporaliov1alpha1.WorkflowExecution
}

VersionInfo contains information about a specific version

Jump to

Keyboard shortcuts

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