deleteexecutions

package
v1.22.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 18 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

func (*Activities) GetNextPageTokenActivity

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

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
}

Jump to

Keyboard shortcuts

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