你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TaskConstraints.RetentionTime Property

Definition

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

public TimeSpan? RetentionTime { get; set; }
member this.RetentionTime : Nullable<TimeSpan> with get, set
Public Property RetentionTime As Nullable(Of TimeSpan)

Property Value

Remarks

The default is 7 days, i.e. the task directory will be retained for 7 days unless the compute node is removed or the job is deleted.

Applies to