public sealed class LifecyclePolicy : IMessage<LifecyclePolicy>, IEquatable<LifecyclePolicy>, IDeepCloneable<LifecyclePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1alpha 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-03-21 UTC."],[[["`LifecyclePolicy` is a class in the Google Cloud Batch v1alpha API that defines how to handle task failures based on specific conditions."],["It implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, for functionalities like message handling, equality comparison, deep cloning, and buffer operations."],["The class includes properties like `Action` and `ActionCondition`, which dictate the action to take (retry or fail) when certain conditions of task failure are met."],["There are two constructors available for the `LifecyclePolicy` class: a default constructor, and a constructor that copies the properties of an existing `LifecyclePolicy`."],["`LifecyclePolicy` inherits basic methods like `GetHashCode`, `GetType`, and `ToString` from the base `object` class."]]],[]]