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."],[[["This documentation covers the `LifecyclePolicy` class within the Google Cloud Batch v1 API, specifically within version 2.3.0, but also includes a list of versions ranging from 1.0.0 up to 2.13.0."],["The `LifecyclePolicy` class is designed to manage how the API handles task failures based on specified conditions and defines the `Action` to execute in different circumstances."],["The class implements various interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and is built from the `object` class."],["`LifecyclePolicy` has two main properties: `Action`, which determines whether to retry or fail a task, and `ActionCondition`, which defines the conditions under which a specific action should be taken."],["The documentation provides constructors for creating instances of the `LifecyclePolicy` class, including a parameter for setting the properties, and it also defines the `Namespace` and `Assembly`."]]],[]]