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, metricsClient metrics.Client, logger log.Logger, ) *Activities
func (*Activities) DeleteExecutionsActivity ¶
func (a *Activities) DeleteExecutionsActivity(ctx context.Context, params DeleteExecutionsActivityParams) (DeleteExecutionsActivityResult, error)
func (*Activities) GetNextPageTokenActivity ¶
func (a *Activities) GetNextPageTokenActivity(ctx context.Context, params GetNextPageTokenParams) ([]byte, error)
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. PagesPerExecutionCount int // Number of concurrent delete executions activities. // Must be not greater than PagesPerExecutionCount 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 DeleteExecutionsResult ¶
func DeleteExecutionsWorkflow ¶
func DeleteExecutionsWorkflow(ctx workflow.Context, params DeleteExecutionsParams) (DeleteExecutionsResult, error)
Click to show internal directories.
Click to hide internal directories.