TaskRetryPolicy class

Task Retry Policy is implemented on a best-effort basis.

The default policy retries tasks with a minimum_backoff of 60 seconds, and a maximum_backoff of 12 hours. You can disable the policy by setting the task_retry_disabled field to true. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. The default values for minimum and maximum backoffs are 60 seconds and 12 hours respectively.

Constructors

TaskRetryPolicy({String? maximumBackoff, String? minimumBackoff, bool? taskRetryDisabled})
TaskRetryPolicy.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
maximumBackoff String?
The maximum amount of time to wait before retrying a failed task.
getter/setter pair
minimumBackoff String?
The minimum amount of time to wait before retrying a failed task.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskRetryDisabled bool?
If true, task retry is disabled.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited