TaskConstraints Class

Definition

Execution constraints to apply to a task.

public class TaskConstraints
type TaskConstraints = class
Public Class TaskConstraints
Inheritance
System.Object
TaskConstraints

Constructors

TaskConstraints()

Initializes a new instance of the TaskConstraints class.

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

Initializes a new instance of the TaskConstraints class.

Properties

MaxTaskRetryCount

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

MaxWallClockTime

Gets or sets 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

Gets or sets 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.

Applies to