JobPreparationTask.WaitForSuccess JobPreparationTask.WaitForSuccess JobPreparationTask.WaitForSuccess Property

Definition

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 Nullable<bool> WaitForSuccess { get; set; }
member this.WaitForSuccess : Nullable<bool> with get, set
Public Property WaitForSuccess As Nullable(Of Boolean)

Property Value

Remarks

If true and the Job Preparation task fails on a compute 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 compute

node. The compute 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 node. The default

value is true.

Applies to