Share via


JobPreparationTask Constructors

Definition

Overloads

JobPreparationTask()

Initializes a new instance of the JobPreparationTask class.

JobPreparationTask(String, String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, TaskConstraints, Nullable<Boolean>, UserIdentity, Nullable<Boolean>)

Initializes a new instance of the JobPreparationTask class.

JobPreparationTask()

Source:
JobPreparationTask.cs

Initializes a new instance of the JobPreparationTask class.

public JobPreparationTask ();
Public Sub New ()

Applies to

JobPreparationTask(String, String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, TaskConstraints, Nullable<Boolean>, UserIdentity, Nullable<Boolean>)

Source:
JobPreparationTask.cs

Initializes a new instance of the JobPreparationTask class.

public JobPreparationTask (string commandLine, string id = default, Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings containerSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> resourceFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> environmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.TaskConstraints constraints = default, bool? waitForSuccess = default, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = default, bool? rerunOnNodeRebootAfterSuccess = default);
new Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask : string * string * Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.TaskConstraints * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity * Nullable<bool> -> Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask
Public Sub New (commandLine As String, Optional id As String = Nothing, Optional containerSettings As TaskContainerSettings = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional constraints As TaskConstraints = Nothing, Optional waitForSuccess As Nullable(Of Boolean) = Nothing, Optional userIdentity As UserIdentity = Nothing, Optional rerunOnNodeRebootAfterSuccess As Nullable(Of Boolean) = Nothing)

Parameters

commandLine
String

The command line of the Job Preparation Task.

id
String

A string that uniquely identifies the Job Preparation Task within the Job.

containerSettings
TaskContainerSettings

The settings for the container under which the Job Preparation Task runs.

resourceFiles
IList<ResourceFile>

A list of files that the Batch service will download to the Compute Node before running the command line.

environmentSettings
IList<EnvironmentSetting>

A list of environment variable settings for the Job Preparation Task.

constraints
TaskConstraints

Constraints that apply to the Job Preparation Task.

waitForSuccess
Nullable<Boolean>

Whether the Batch service should wait for the Job Preparation Task to complete successfully before scheduling any other Tasks of the Job on the Compute Node. A Job Preparation Task has completed successfully if it exits with exit code 0.

userIdentity
UserIdentity

The user identity under which the Job Preparation Task runs.

rerunOnNodeRebootAfterSuccess
Nullable<Boolean>

Whether the Batch service should rerun the Job Preparation Task after a Compute Node reboots.

Applies to