Documentation ¶
Index ¶
- Constants
- type Activities
- type LocalActivities
- func (a *LocalActivities) CountExecutionsAdvVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) (int64, error)
- func (a *LocalActivities) DeleteNamespaceActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) error
- func (a *LocalActivities) IsAdvancedVisibilityActivity(_ context.Context, nsName namespace.Name) (bool, error)
- type ReclaimResourcesParams
- type ReclaimResourcesResult
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 (*Activities) EnsureNoExecutionsStdVisibilityActivity ¶ added in v1.17.0
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 (*LocalActivities) DeleteNamespaceActivity ¶ added in v1.23.0
func (*LocalActivities) IsAdvancedVisibilityActivity ¶ added in v1.23.0
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 }
func ReclaimResourcesWorkflow ¶
func ReclaimResourcesWorkflow(ctx workflow.Context, params ReclaimResourcesParams) (ReclaimResourcesResult, error)
Click to show internal directories.
Click to hide internal directories.