Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TimeoutFailureTypePrefix is the prefix for timeout failure types // used in retry policy // the actual failure type will be prefix + enums.TimeoutType.String() // e.g. "TemporalTimeout:StartToClose" or "TemporalTimeout:Heartbeat" TimeoutFailureTypePrefix = "TemporalTimeout:" )
Variables ¶
This section is empty.
Functions ¶
func EnsureDefaults ¶
func EnsureDefaults(originalPolicy *commonpb.RetryPolicy, defaultSettings DefaultRetrySettings)
EnsureDefaults ensures the policy subfields, if not explicitly set, are set to the specified defaults
func GetDefault ¶
Types ¶
type DefaultRetrySettings ¶
type DefaultRetrySettings struct { InitialInterval time.Duration MaximumIntervalCoefficient float64 BackoffCoefficient float64 MaximumAttempts int32 }
DefaultRetrySettings indicates what the "default" retry settings are if it is not specified on an Activity or for any unset fields if a policy is explicitly set on a workflow
func FromConfigToDefault ¶
func FromConfigToDefault(options map[string]interface{}) DefaultRetrySettings
Click to show internal directories.
Click to hide internal directories.