deleteexecutions

package
v1.25.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowName = "temporal-sys-delete-executions-workflow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Activities

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

func NewActivities

func NewActivities(
	visibilityManager manager.VisibilityManager,
	historyClient historyservice.HistoryServiceClient,
	metricsHandler metrics.Handler,
	logger log.Logger,
) *Activities

func (*Activities) DeleteExecutionsActivity

type DeleteExecutionsActivityParams

type DeleteExecutionsActivityParams struct {
	Namespace     namespace.Name
	NamespaceID   namespace.ID
	RPS           int
	ListPageSize  int
	NextPageToken []byte
}

type DeleteExecutionsActivityResult

type DeleteExecutionsActivityResult struct {
	ErrorCount   int
	SuccessCount int
}

type DeleteExecutionsConfig

type DeleteExecutionsConfig struct {
	// RPS per every parallel delete executions activity.
	// Total RPS is equal to DeleteActivityRPS * ConcurrentDeleteExecutionsActivities.
	DeleteActivityRPS int
	// Page size to read executions from visibility.
	PageSize int
	// Number of pages before returning ContinueAsNew.
	PagesPerExecution int
	// Number of concurrent delete executions activities.
	// Must be not greater than PagesPerExecution and number of worker cores in the cluster.
	ConcurrentDeleteExecutionsActivities int
}

func (*DeleteExecutionsConfig) ApplyDefaults

func (cfg *DeleteExecutionsConfig) ApplyDefaults()

func (DeleteExecutionsConfig) String

func (cfg DeleteExecutionsConfig) String() string

type DeleteExecutionsParams

type DeleteExecutionsParams struct {
	Namespace   namespace.Name
	NamespaceID namespace.ID
	Config      DeleteExecutionsConfig

	// To carry over progress results with ContinueAsNew.
	PreviousSuccessCount int
	PreviousErrorCount   int
	ContinueAsNewCount   int
	NextPageToken        []byte
}

type DeleteExecutionsResult

type DeleteExecutionsResult struct {
	SuccessCount int
	ErrorCount   int
}

type GetNextPageTokenParams

type GetNextPageTokenParams struct {
	Namespace     namespace.Name
	NamespaceID   namespace.ID
	PageSize      int
	NextPageToken []byte
}

type LocalActivities added in v1.23.0

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

func NewLocalActivities added in v1.23.0

func NewLocalActivities(
	visibilityManager manager.VisibilityManager,
	metricsHandler metrics.Handler,
	logger log.Logger,
) *LocalActivities

func (*LocalActivities) GetNextPageTokenActivity added in v1.23.0

func (a *LocalActivities) GetNextPageTokenActivity(ctx context.Context, params GetNextPageTokenParams) ([]byte, error)

Jump to

Keyboard shortcuts

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