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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLifecyclePolicy\u003c/code\u003e class in the Google.Cloud.Batch.V1 namespace provides a way to define how task failures are handled in the Batch v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLifecyclePolicy\u003c/code\u003e class includes two constructors: a default constructor and one that accepts another \u003ccode\u003eLifecyclePolicy\u003c/code\u003e instance for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties \u003ccode\u003eAction\u003c/code\u003e and \u003ccode\u003eActionCondition\u003c/code\u003e, which determine the specific action to take and the conditions that trigger it when a task fails.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the LifecyclePolicy documentation are available, spanning from version 1.0.0 to the latest version 2.13.0.\u003c/p\u003e\n"]]],[],null,[]]