JobPreparationTask.WaitForSuccess 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 whether the Batch service should wait for the Job Preparation Task to complete successfully before scheduling any other Tasks of the Job on the Compute Node. A Job Preparation Task has completed successfully if it exits with exit code 0.
[Newtonsoft.Json.JsonProperty(PropertyName="waitForSuccess")]
public bool? WaitForSuccess { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="waitForSuccess")>]
member this.WaitForSuccess : Nullable<bool> with get, set
Public Property WaitForSuccess As Nullable(Of Boolean)
Property Value
- Attributes
-
Newtonsoft.Json.JsonPropertyAttribute
Remarks
If true and the Job Preparation Task fails on a Node, the Batch service retries the Job Preparation Task up to its maximum retry count (as specified in the constraints element). If the Task has still not completed successfully after all retries, then the Batch service will not schedule Tasks of the Job to the Node. The Node remains active and eligible to run Tasks of other Jobs. If false, the Batch service will not wait for the Job Preparation Task to complete. In this case, other Tasks of the Job can start executing on the Compute Node while the Job Preparation Task is still running; and even if the Job Preparation Task fails, new Tasks will continue to be scheduled on the Compute Node. The default value is true.