Batch v1 API - Class LifecyclePolicy (2.1.0)

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.

Inheritance

object > LifecyclePolicy

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

LifecyclePolicy()

public LifecyclePolicy()

LifecyclePolicy(LifecyclePolicy)

public LifecyclePolicy(LifecyclePolicy other)
Parameter
NameDescription
otherLifecyclePolicy

Properties

Action

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.

Property Value
TypeDescription
LifecyclePolicyTypesAction

ActionCondition

public LifecyclePolicy.Types.ActionCondition ActionCondition { get; set; }

Conditions that decide why a task failure is dealt with a specific action.

Property Value
TypeDescription
LifecyclePolicyTypesActionCondition