history

package
v1.2.13-prerelease04 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scavenger

type Scavenger struct {
	// contains filtered or unexported fields
}

Scavenger is the type that holds the state for history scavenger daemon

func NewScavenger

func NewScavenger(
	db p.HistoryManager,
	rps int,
	client history.Client,
	hbd ScavengerHeartbeatDetails,
	metricsClient metrics.Client,
	logger log.Logger,
	maxWorkflowRetentionInDays dynamicconfig.IntPropertyFn,
	domainCache cache.DomainCache,
) *Scavenger

NewScavenger returns an instance of history scavenger daemon The Scavenger can be started by calling the Run() method on the returned object. Calling the Run() method will result in one complete iteration over all of the history branches in the system. For each branch, the scavenger will attempt

  • describe the corresponding workflow execution
  • deletion of history itself, if there are no workflow execution

func (*Scavenger) Run

Run runs the scavenger

type ScavengerHeartbeatDetails

type ScavengerHeartbeatDetails struct {
	NextPageToken []byte
	CurrentPage   int
	SkipCount     int
	ErrorCount    int
	SuccCount     int
}

ScavengerHeartbeatDetails is the heartbeat detail for HistoryScavengerActivity

Jump to

Keyboard shortcuts

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