retry

package
v0.0.0-...-6091764 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

type Retry interface {
	AddPolicy(policy *task.TimeRetry, mesosTask *mesos_v1.TaskInfo) error
	CheckPolicy(mesosTask *mesos_v1.TaskInfo) *TaskRetry
	ClearPolicy(mesosTask *mesos_v1.TaskInfo) error
	RunPolicy(policy *TaskRetry, f func() error) error
}

Provides pluggable retry mechanisms. Also used extensively for testing with mocks.

type TaskRetry

type TaskRetry struct {
	TotalRetries int
	MaxRetries   int
	RetryTime    time.Duration
	Backoff      bool
	Name         string
}

Primary retry mechanism used with policies in the task manager and persistence engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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