TaskConstraints.RetentionTime Property

Definition

Gets or sets the minimum time to retain the task directory on the compute node where it ran, from the time it completes execution. After this time, the Batch service may delete the task directory and all its contents.

[Newtonsoft.Json.JsonProperty(PropertyName="retentionTime")]
public Nullable<TimeSpan> RetentionTime { get; set; }
member this.RetentionTime : Nullable<TimeSpan> with get, set
Public Property RetentionTime As Nullable(Of TimeSpan)

Property Value

System.Nullable<System.TimeSpan>
Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

The default is infinite, i.e. the task directory will be retained until the compute node is removed or reimaged.

Applies to