reclaimresources

package
v1.26.0-120.7 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowName = "temporal-sys-reclaim-namespace-resources-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,
	metricsHandler metrics.Handler,
	logger log.Logger,
) *Activities

func (*Activities) EnsureNoExecutionsAdvVisibilityActivity added in v1.17.0

func (a *Activities) EnsureNoExecutionsAdvVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name, notDeletedCount int) error

func (*Activities) EnsureNoExecutionsStdVisibilityActivity added in v1.17.0

func (a *Activities) EnsureNoExecutionsStdVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) error

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,
	metadataManager persistence.MetadataManager,
	metricsHandler metrics.Handler,
	logger log.Logger,
) *LocalActivities

func (*LocalActivities) CountExecutionsAdvVisibilityActivity added in v1.23.0

func (a *LocalActivities) CountExecutionsAdvVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) (int64, error)

func (*LocalActivities) DeleteNamespaceActivity added in v1.23.0

func (a *LocalActivities) DeleteNamespaceActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) error

func (*LocalActivities) IsAdvancedVisibilityActivity added in v1.23.0

func (a *LocalActivities) IsAdvancedVisibilityActivity(_ context.Context, nsName namespace.Name) (bool, error)

type ReclaimResourcesParams

type ReclaimResourcesParams struct {
	deleteexecutions.DeleteExecutionsParams

	// NamespaceDeleteDelay indicates the duration for how long ReclaimResourcesWorkflow
	// will sleep between workflow execution and namespace deletion.
	// Default is 0, means, workflow won't sleep.
	NamespaceDeleteDelay time.Duration
}

type ReclaimResourcesResult

type ReclaimResourcesResult struct {
	DeleteSuccessCount int
	DeleteErrorCount   int
	NamespaceDeleted   bool
}

Jump to

Keyboard shortcuts

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