Documentation ¶
Index ¶
- Constants
- type Activities
- func (a *Activities) CountExecutionsAdvVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) (int64, error)
- func (a *Activities) DeleteNamespaceActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) error
- func (a *Activities) EnsureNoExecutionsAdvVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name, ...) error
- func (a *Activities) EnsureNoExecutionsStdVisibilityActivity(ctx context.Context, nsID namespace.ID, nsName namespace.Name) error
- func (a *Activities) IsAdvancedVisibilityActivity(_ context.Context) (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, metadataManager persistence.MetadataManager, metricsHandler metrics.MetricsHandler, logger log.Logger, ) *Activities
func (*Activities) CountExecutionsAdvVisibilityActivity ¶ added in v1.17.3
func (*Activities) DeleteNamespaceActivity ¶
func (*Activities) EnsureNoExecutionsAdvVisibilityActivity ¶ added in v1.17.0
func (*Activities) EnsureNoExecutionsStdVisibilityActivity ¶ added in v1.17.0
func (*Activities) IsAdvancedVisibilityActivity ¶ added in v1.17.0
func (a *Activities) IsAdvancedVisibilityActivity(_ context.Context) (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 }
func ReclaimResourcesWorkflow ¶
func ReclaimResourcesWorkflow(ctx workflow.Context, params ReclaimResourcesParams) (ReclaimResourcesResult, error)
Click to show internal directories.
Click to hide internal directories.