history

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 14 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 persistence.HistoryManager,
	rps int,
	client historyservice.HistoryServiceClient,
	hbd ScavengerHeartbeatDetails,
	metricsClient metrics.Client,
	logger log.Logger,
) *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