public sealed class LifecyclePolicy : IMessage<LifecyclePolicy>, IEquatable<LifecyclePolicy>, IDeepCloneable<LifecyclePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class LifecyclePolicy.
LifecyclePolicy describes how to deal with task failures
based on different conditions.
[[["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-04-17 UTC."],[[["The `LifecyclePolicy` class in the Google.Cloud.Batch.V1 namespace provides a way to define how task failures are handled in the Batch v1 API."],["This class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits members from `Object`."],["The `LifecyclePolicy` class includes two constructors: a default constructor and one that accepts another `LifecyclePolicy` instance for copying."],["The class has properties `Action` and `ActionCondition`, which determine the specific action to take and the conditions that trigger it when a task fails."],["Multiple versions of the LifecyclePolicy documentation are available, spanning from version 1.0.0 to the latest version 2.13.0."]]],[]]