TaskConstraints.MaxTaskRetryCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the maximum number of times the Task may be retried. The Batch service retries a Task if its exit code is nonzero.
[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)
Property Value
- Attributes
-
Newtonsoft.Json.JsonPropertyAttribute
Remarks
Note that this value specifically controls the number of retries for the Task executable due to a nonzero exit code. The Batch service will try the Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the Task after the first attempt. If the maximum retry count is -1, the Batch service retries the Task without limit, however this is not recommended for a start task or any task. The default value is 0 (no retries).