queue

package
v0.0.0-...-6d903a3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineRequeueInterval

func DetermineRequeueInterval(state shared.State, intervals RequeueIntervals) time.Duration

Types

type RequeueIntervals

type RequeueIntervals struct {
	Success time.Duration
	Busy    time.Duration
	Warning time.Duration
	Error   time.Duration
	Jitter  *RequeueJitter
}

type RequeueJitter

type RequeueJitter struct {
	JitterProbability float64
	JitterPercentage  float64
	RandFunc          func() float64
}

func NewRequeueJitter

func NewRequeueJitter(jitterProbability, jitterPercentage float64) *RequeueJitter

func (*RequeueJitter) Apply

func (j *RequeueJitter) Apply(interval time.Duration) time.Duration

type RequeueType

type RequeueType string
const (
	IntendedRequeue   RequeueType = "intended"
	UnexpectedRequeue RequeueType = "unexpected"
)

Jump to

Keyboard shortcuts

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