共用方式為


JobAddParameter.OnAllTasksComplete Property

Definition

Gets or sets the action the Batch service should take when all Tasks in the Job are in the completed state.

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

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. Possible values include: 'noAction', 'terminateJob'

Applies to