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.
public LifecyclePolicy.Types.Action Action { get; set; }
Action to execute when ActionCondition is true.
When RETRY_TASK is specified, we will retry failed tasks
if we notice any exit code match and fail tasks if no match is found.
Likewise, when FAIL_TASK is specified, we will fail tasks
if we notice any exit code match and retry tasks if no match is found.
[[["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 document provides reference information for the `LifecyclePolicy` class within the Google Cloud Batch v1 API, detailing its purpose in managing task failures."],["`LifecyclePolicy` is used to define how task failures should be handled based on different conditions, offering options to either retry or fail tasks according to the situation."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, offering various methods for object management."],["The `LifecyclePolicy` class includes properties like `Action` and `ActionCondition`, which determine the action to be taken and the specific conditions that trigger it, respectively."],["The documentation covers various versions of `LifecyclePolicy` within the Google Cloud Batch v1 API, ranging from version 1.0.0 to the latest version 2.13.0."]]],[]]