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-03-21 UTC."],[[["The document provides reference documentation for the `LifecyclePolicy` class within the Google Cloud Batch v1 API, specifically for .NET."],["`LifecyclePolicy` is a class that determines how task failures are handled, including options to retry or fail tasks based on specific conditions."],["The latest version of the documentation is version 2.13.0, and there are 18 total versions available in the list spanning from version 1.0.0 up to the latest 2.13.0."],["The class implements interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and has properties like `Action` and `ActionCondition`."],["The documentation lists the constructors of the `LifecyclePolicy` which are a parameterless one and another which takes in another `LifecyclePolicy`."]]],[]]