TaskConstraints Constructors

Definition

Overloads

TaskConstraints()

Initializes a new instance of the TaskConstraints class.

TaskConstraints(Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<Int32>)

Initializes a new instance of the TaskConstraints class.

TaskConstraints()

Initializes a new instance of the TaskConstraints class.

public TaskConstraints ();
Public Sub New ()

Applies to

TaskConstraints(Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<Int32>)

Initializes a new instance of the TaskConstraints class.

public TaskConstraints (Nullable<TimeSpan> maxWallClockTime = null, Nullable<TimeSpan> retentionTime = null, Nullable<int> maxTaskRetryCount = null);
new Microsoft.Azure.Batch.Protocol.Models.TaskConstraints : Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<int> -> Microsoft.Azure.Batch.Protocol.Models.TaskConstraints
Public Sub New (Optional maxWallClockTime As Nullable(Of TimeSpan) = null, Optional retentionTime As Nullable(Of TimeSpan) = null, Optional maxTaskRetryCount As Nullable(Of Integer) = null)

Parameters

maxWallClockTime
System.Nullable<System.TimeSpan>

The maximum elapsed time that the task may run, measured from the time the task starts. If the task does not complete within the time limit, the Batch service terminates it.

retentionTime
System.Nullable<System.TimeSpan>

The minimum time to retain the task directory on the compute node where it ran, from the time it completes execution. After this time, the Batch service may delete the task directory and all its contents.

maxTaskRetryCount
System.Nullable<System.Int32>

The maximum number of times the task may be retried. The Batch service retries a task if its exit code is nonzero.

Applies to