progress

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WorkflowProgressCheckPeriod time.Duration `yaml:"workflow_progress_check_period"`
	StaleWorkflowThreshold      time.Duration `yaml:"stale_workflow_threshold"`
}

type Metrics

type Metrics struct {
	TotalWorkflow       tally.Gauge
	TotalActiveWorkflow tally.Gauge
	TotalStaleWorkflow  tally.Gauge
	ProcessDuration     tally.Timer

	GetJobRuntimeFailure tally.Gauge
}

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

type WorkflowProgressCheck

type WorkflowProgressCheck struct {
	JobFactory cached.JobFactory
	Metrics    *Metrics
	Config     *Config
}

WorkflowProgressCheck checks if workflows are making progress periodically. And emit metrics if any workflow has not been updated within StaleWorkflowThreshold. It is used to catch potential slow workflow and bugs in the system.

func (*WorkflowProgressCheck) Check

func (u *WorkflowProgressCheck) Check()

func (*WorkflowProgressCheck) Register

func (u *WorkflowProgressCheck) Register(manager background.Manager) error

Jump to

Keyboard shortcuts

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