CloudJob.OnTaskFailure Property

Definition

Gets or sets the action the Batch service should take when any task in the job fails.

[Newtonsoft.Json.JsonProperty(PropertyName="onTaskFailure")]
public Nullable<Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure> OnTaskFailure { get; set; }
member this.OnTaskFailure : Nullable<Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure> with get, set
Public Property OnTaskFailure As Nullable(Of OnTaskFailure)

Property Value

System.Nullable<OnTaskFailure>
Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

A task is considered to have failed if has a failureInfo. A failureInfo is set if the task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the task, for example due to a resource file download error. noAction - do nothing. performExitOptionsJobAction - take the action associated with the task exit condition in the task's exitConditions collection. (This may still result in no action being taken, if that is what the task specifies.) The default is noAction. Possible values include: 'noAction', 'performExitOptionsJobAction'

Applies to