Condividi tramite


TaskAddParameter Class

Definition

An Azure Batch Task to add.

public class TaskAddParameter
type TaskAddParameter = class
Public Class TaskAddParameter
Inheritance
TaskAddParameter

Remarks

Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing.

Constructors

TaskAddParameter()

Initializes a new instance of the TaskAddParameter class.

TaskAddParameter(String, String, String, TaskContainerSettings, ExitConditions, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, AffinityInformation, TaskConstraints, Nullable<Int32>, UserIdentity, MultiInstanceSettings, TaskDependencies, IList<ApplicationPackageReference>, AuthenticationTokenSettings)

Initializes a new instance of the TaskAddParameter class.

Properties

AffinityInfo

Gets or sets a locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task.

ApplicationPackageReferences

Gets or sets a list of Packages that the Batch service will deploy to the Compute Node before running the command line.

AuthenticationTokenSettings

Gets or sets the settings for an authentication token that the Task can use to perform Batch service operations.

CommandLine

Gets or sets the command line of the Task.

Constraints

Gets or sets the execution constraints that apply to this Task.

ContainerSettings

Gets or sets the settings for the container under which the Task runs.

DependsOn

Gets or sets the Tasks that this Task depends on.

DisplayName

Gets or sets a display name for the Task.

EnvironmentSettings

Gets or sets a list of environment variable settings for the Task.

ExitConditions

Gets or sets how the Batch service should respond when the Task completes.

Id

Gets or sets a string that uniquely identifies the Task within the Job.

MultiInstanceSettings

Gets or sets an object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task.

OutputFiles

Gets or sets a list of files that the Batch service will upload from the Compute Node after running the command line.

RequiredSlots

Gets or sets the number of scheduling slots that the Task required to run.

ResourceFiles

Gets or sets a list of files that the Batch service will download to the Compute Node before running the command line.

UserIdentity

Gets or sets the user identity under which the Task runs.

Applies to