Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::TaskRetryPolicy.
Task Retry Policy is implemented on a best-effort
basis.
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 30 minutes respectively.
(::Google::Protobuf::Duration) — Optional. The maximum amount of time to wait before retrying a failed task.
This sets an upper bound for the backoff delay.
value (::Google::Protobuf::Duration) — Optional. The maximum amount of time to wait before retrying a failed task.
This sets an upper bound for the backoff delay.
Returns
(::Google::Protobuf::Duration) — Optional. The maximum amount of time to wait before retrying a failed task.
This sets an upper bound for the backoff delay.
(::Google::Protobuf::Duration) — Optional. The minimum amount of time to wait before retrying a failed task.
This sets a lower bound for the backoff delay.
value (::Google::Protobuf::Duration) — Optional. The minimum amount of time to wait before retrying a failed task.
This sets a lower bound for the backoff delay.
Returns
(::Google::Protobuf::Duration) — Optional. The minimum amount of time to wait before retrying a failed task.
This sets a lower bound for the backoff delay.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::TaskRetryPolicy (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [1.3.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.3.0/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [1.2.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.2.0/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [1.1.2](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.1.2/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [1.0.1](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.0.1/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [0.5.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.5.0/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [0.4.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.4.0/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [0.3.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.3.0/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [0.2.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.2.0/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)\n- [0.1.3](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.1.3/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy) \nReference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::TaskRetryPolicy.\n\nTask Retry Policy is implemented on a best-effort\nbasis.\nRetry delay will be exponential based on provided minimum and maximum\nbackoffs. \u003chttps://en.wikipedia.org/wiki/Exponential_backoff\u003e.\nNote that the delay between consecutive task restarts may not always\nprecisely match the configured settings. This can happen when the\nConnectCluster is in rebalancing state or if the ConnectCluster is\nunresponsive etc. The default values for minimum and maximum backoffs are\n60 seconds and 30 minutes respectively. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #maximum_backoff\n\n def maximum_backoff() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.\n\n### #maximum_backoff=\n\n def maximum_backoff=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.\n\n### #minimum_backoff\n\n def minimum_backoff() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.\n\n### #minimum_backoff=\n\n def minimum_backoff=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay."]]