Bagikan melalui


JobSpecification Constructors

Definition

Overloads

JobSpecification()

Initializes a new instance of the JobSpecification class.

JobSpecification(PoolInformation, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, String, Nullable<Boolean>, Nullable<OnAllTasksComplete>, Nullable<OnTaskFailure>, JobNetworkConfiguration, JobConstraints, JobManagerTask, JobPreparationTask, JobReleaseTask, IList<EnvironmentSetting>, IList<MetadataItem>)

Initializes a new instance of the JobSpecification class.

JobSpecification()

Source:
JobSpecification.cs

Initializes a new instance of the JobSpecification class.

public JobSpecification ();
Public Sub New ()

Applies to

JobSpecification(PoolInformation, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, String, Nullable<Boolean>, Nullable<OnAllTasksComplete>, Nullable<OnTaskFailure>, JobNetworkConfiguration, JobConstraints, JobManagerTask, JobPreparationTask, JobReleaseTask, IList<EnvironmentSetting>, IList<MetadataItem>)

Source:
JobSpecification.cs

Initializes a new instance of the JobSpecification class.

public JobSpecification (Microsoft.Azure.Batch.Protocol.Models.PoolInformation poolInfo, int? priority = default, bool? allowTaskPreemption = default, int? maxParallelTasks = default, string displayName = default, bool? usesTaskDependencies = default, Microsoft.Azure.Batch.Protocol.Models.OnAllTasksComplete? onAllTasksComplete = default, Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure? onTaskFailure = default, Microsoft.Azure.Batch.Protocol.Models.JobNetworkConfiguration networkConfiguration = default, Microsoft.Azure.Batch.Protocol.Models.JobConstraints constraints = default, Microsoft.Azure.Batch.Protocol.Models.JobManagerTask jobManagerTask = default, Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask jobPreparationTask = default, Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask jobReleaseTask = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> commonEnvironmentSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.MetadataItem> metadata = default);
new Microsoft.Azure.Batch.Protocol.Models.JobSpecification : Microsoft.Azure.Batch.Protocol.Models.PoolInformation * Nullable<int> * Nullable<bool> * Nullable<int> * string * Nullable<bool> * Nullable<Microsoft.Azure.Batch.Protocol.Models.OnAllTasksComplete> * Nullable<Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure> * Microsoft.Azure.Batch.Protocol.Models.JobNetworkConfiguration * Microsoft.Azure.Batch.Protocol.Models.JobConstraints * Microsoft.Azure.Batch.Protocol.Models.JobManagerTask * Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask * Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.MetadataItem> -> Microsoft.Azure.Batch.Protocol.Models.JobSpecification
Public Sub New (poolInfo As PoolInformation, Optional priority As Nullable(Of Integer) = Nothing, Optional allowTaskPreemption As Nullable(Of Boolean) = Nothing, Optional maxParallelTasks As Nullable(Of Integer) = Nothing, Optional displayName As String = Nothing, Optional usesTaskDependencies As Nullable(Of Boolean) = Nothing, Optional onAllTasksComplete As Nullable(Of OnAllTasksComplete) = Nothing, Optional onTaskFailure As Nullable(Of OnTaskFailure) = Nothing, Optional networkConfiguration As JobNetworkConfiguration = Nothing, Optional constraints As JobConstraints = Nothing, Optional jobManagerTask As JobManagerTask = Nothing, Optional jobPreparationTask As JobPreparationTask = Nothing, Optional jobReleaseTask As JobReleaseTask = Nothing, Optional commonEnvironmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional metadata As IList(Of MetadataItem) = Nothing)

Parameters

poolInfo
PoolInformation

The Pool on which the Batch service runs the Tasks of Jobs created under this schedule.

priority
Nullable<Int32>

The priority of Jobs created under this schedule.

allowTaskPreemption
Nullable<Boolean>

Whether Tasks in this job can be preempted by other high priority jobs

maxParallelTasks
Nullable<Int32>

The maximum number of tasks that can be executed in parallel for the job.

displayName
String

The display name for Jobs created under this schedule.

usesTaskDependencies
Nullable<Boolean>

Whether Tasks in the Job can define dependencies on each other. The default is false.

onAllTasksComplete
Nullable<OnAllTasksComplete>

The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state.

onTaskFailure
Nullable<OnTaskFailure>

The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error.

networkConfiguration
JobNetworkConfiguration

The network configuration for the Job.

constraints
JobConstraints

The execution constraints for Jobs created under this schedule.

jobManagerTask
JobManagerTask

The details of a Job Manager Task to be launched when a Job is started under this schedule.

jobPreparationTask
JobPreparationTask

The Job Preparation Task for Jobs created under this schedule.

jobReleaseTask
JobReleaseTask

The Job Release Task for Jobs created under this schedule.

commonEnvironmentSettings
IList<EnvironmentSetting>

A list of common environment variable settings. These environment variables are set for all Tasks in Jobs created under this schedule (including the Job Manager, Job Preparation and Job Release Tasks).

metadata
IList<MetadataItem>

A list of name-value pairs associated with each Job created under this schedule as metadata.

Applies to