Condividi tramite


JobManagerTask Constructors

Definition

Overloads

JobManagerTask()

Initializes a new instance of the JobManagerTask class.

JobManagerTask(String, String, String, TaskContainerSettings, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, TaskConstraints, Nullable<Int32>, Nullable<Boolean>, UserIdentity, Nullable<Boolean>, IList<ApplicationPackageReference>, AuthenticationTokenSettings, Nullable<Boolean>)

Initializes a new instance of the JobManagerTask class.

JobManagerTask()

Source:
JobManagerTask.cs

Initializes a new instance of the JobManagerTask class.

public JobManagerTask ();
Public Sub New ()

Applies to

JobManagerTask(String, String, String, TaskContainerSettings, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, TaskConstraints, Nullable<Int32>, Nullable<Boolean>, UserIdentity, Nullable<Boolean>, IList<ApplicationPackageReference>, AuthenticationTokenSettings, Nullable<Boolean>)

Source:
JobManagerTask.cs

Initializes a new instance of the JobManagerTask class.

public JobManagerTask (string id, string commandLine, string displayName = 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.OutputFile> outputFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> environmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.TaskConstraints constraints = default, int? requiredSlots = default, bool? killJobOnCompletion = default, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = default, bool? runExclusive = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> applicationPackageReferences = default, Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings authenticationTokenSettings = default, bool? allowLowPriorityNode = default);
new Microsoft.Azure.Batch.Protocol.Models.JobManagerTask : string * 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.OutputFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.TaskConstraints * Nullable<int> * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> * Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings * Nullable<bool> -> Microsoft.Azure.Batch.Protocol.Models.JobManagerTask
Public Sub New (id As String, commandLine As String, Optional displayName As String = Nothing, Optional containerSettings As TaskContainerSettings = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional outputFiles As IList(Of OutputFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional constraints As TaskConstraints = Nothing, Optional requiredSlots As Nullable(Of Integer) = Nothing, Optional killJobOnCompletion As Nullable(Of Boolean) = Nothing, Optional userIdentity As UserIdentity = Nothing, Optional runExclusive As Nullable(Of Boolean) = Nothing, Optional applicationPackageReferences As IList(Of ApplicationPackageReference) = Nothing, Optional authenticationTokenSettings As AuthenticationTokenSettings = Nothing, Optional allowLowPriorityNode As Nullable(Of Boolean) = Nothing)

Parameters

id
String

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

commandLine
String

The command line of the Job Manager Task.

displayName
String

The display name of the Job Manager Task.

containerSettings
TaskContainerSettings

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

resourceFiles
IList<ResourceFile>

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

outputFiles
IList<OutputFile>

A list of files that the Batch service will upload from the Compute Node after running the command line.

environmentSettings
IList<EnvironmentSetting>

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

constraints
TaskConstraints

Constraints that apply to the Job Manager Task.

requiredSlots
Nullable<Int32>

The number of scheduling slots that the Task requires to run.

killJobOnCompletion
Nullable<Boolean>

Whether completion of the Job Manager Task signifies completion of the entire Job.

userIdentity
UserIdentity

The user identity under which the Job Manager Task runs.

runExclusive
Nullable<Boolean>

Whether the Job Manager Task requires exclusive use of the Compute Node where it runs.

applicationPackageReferences
IList<ApplicationPackageReference>

A list of Application Packages that the Batch service will deploy to the Compute Node before running the command line.

authenticationTokenSettings
AuthenticationTokenSettings

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

allowLowPriorityNode
Nullable<Boolean>

Whether the Job Manager Task may run on a Spot/Low-priority Compute Node.

Applies to