Share via


JobManagerTask.KillJobOnCompletion Property

Definition

Gets or sets whether completion of the Job Manager Task signifies completion of the entire Job.

[Newtonsoft.Json.JsonProperty(PropertyName="killJobOnCompletion")]
public bool? KillJobOnCompletion { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="killJobOnCompletion")>]
member this.KillJobOnCompletion : Nullable<bool> with get, set
Public Property KillJobOnCompletion As Nullable(Of Boolean)

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

If true, when the Job Manager Task completes, the Batch service marks the Job as complete. If any Tasks are still running at this time (other than Job Release), those Tasks are terminated. If false, the completion of the Job Manager Task does not affect the Job status. In this case, you should either use the onAllTasksComplete attribute to terminate the Job, or have a client or user terminate the Job explicitly. An example of this is if the Job Manager creates a set of Tasks but then takes no further role in their execution. The default value is true. If you are using the onAllTasksComplete and onTaskFailure attributes to control Job lifetime, and using the Job Manager Task only to create the Tasks for the Job (not to monitor progress), then it is important to set killJobOnCompletion to false.

Applies to