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 (a *Activities) DeleteExecutionsActivity(ctx context.Context, params DeleteExecutionsActivityParams) (DeleteExecutionsActivityResult, 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. 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 DeleteExecutionsResult ¶
func DeleteExecutionsWorkflow ¶
func DeleteExecutionsWorkflow(ctx workflow.Context, params DeleteExecutionsParams) (DeleteExecutionsResult, error)
type GetNextPageTokenParams ¶
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, metricsHandler metrics.Handler, logger log.Logger, ) *LocalActivities
func (*LocalActivities) GetNextPageTokenActivity ¶ added in v1.23.0
func (a *LocalActivities) GetNextPageTokenActivity(ctx context.Context, params GetNextPageTokenParams) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.