Batch v1 API - Class LifecyclePolicy (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
public sealed class LifecyclePolicy : IMessage<LifecyclePolicy>, IEquatable<LifecyclePolicy>, IDeepCloneable<LifecyclePolicy>, IBufferMessage, IMessageReference documentation and code samples for the Batch v1 API class LifecyclePolicy.
LifecyclePolicy describes how to deal with task failures based on different conditions.
Implements
IMessage LifecyclePolicy, IEquatable LifecyclePolicy, IDeepCloneable LifecyclePolicy, IBufferMessage, IMessageNamespace
Google.Cloud.Batch.V1Assembly
Google.Cloud.Batch.V1.dll
Constructors
LifecyclePolicy()
public LifecyclePolicy()LifecyclePolicy(LifecyclePolicy)
public LifecyclePolicy(LifecyclePolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
LifecyclePolicy |
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 | |
|---|---|
| Type | Description |
LifecyclePolicy Types Action |
|
ActionCondition
public LifecyclePolicy.Types.ActionCondition ActionCondition { get; set; }Conditions that decide why a task failure is dealt with a specific action.
| Property Value | |
|---|---|
| Type | Description |
LifecyclePolicy Types ActionCondition |
|