共用方式為


JobConstraints.MaxWallClockTime Property

Definition

Gets or sets the maximum elapsed time that the Job may run, measured from the time the Job is created.

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

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

If the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run.

Applies to