共用方式為


StartTask.MaxTaskRetryCount 屬性

定義

取得或設定可重試工作的最大次數。

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

屬性值

屬性
Newtonsoft.Json.JsonPropertyAttribute

備註

如果工作的結束代碼不是零,Batch 服務會重試工作。 請注意,這個值會特別控制重試次數。 Batch 服務會嘗試工作一次,然後可一直重試直到達此限制。 例如,如果重試計數上限為 3,Batch 會嘗試工作最多 4 次, (一次初始嘗試,3 次重試) 。 如果重試計數上限為 0,Batch 服務不會重試工作。 如果重試計數上限為 -1,Batch 服務會重試工作,而沒有限制。

適用於