public sealed class FailurePolicy.Types.Retry : IMessage<FailurePolicy.Types.Retry>, IEquatable<FailurePolicy.Types.Retry>, IDeepCloneable<FailurePolicy.Types.Retry>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v1 API class FailurePolicy.Types.Retry.
Describes the retry policy in case of function's execution failure.
A function execution will be retried on any failure.
A failed execution will be retried up to 7 days with an exponential backoff
(capped at 10 seconds).
Retried execution is charged as any other execution.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e class within the Google Cloud Functions v1 API, detailing its role in handling function execution failures.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, equality comparison, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eIn the event of a function execution failure, the retry policy, as defined by \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e, will retry the execution for up to 7 days, using exponential backoff with a maximum delay of 10 seconds.\u003c/p\u003e\n"],["\u003cp\u003eThere are 11 available versions listed for the \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e class ranging from version 1.1.0 to the latest version, 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e class has two constructors, \u003ccode\u003eRetry()\u003c/code\u003e and \u003ccode\u003eRetry(FailurePolicy.Types.Retry other)\u003c/code\u003e, to enable the creation of new instances, optionally based on an existing \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]