JobSpecification Class

Definition

Specifies details of the jobs to be created on a schedule.

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

Constructors

JobSpecification()

Initializes a new instance of the JobSpecification class.

Properties

CommonEnvironmentSettings

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

Constraints

Gets or sets the execution constraints for jobs created under this schedule.

DisplayName

Gets or sets the display name for jobs created under this schedule.

JobManagerTask

Gets or sets the details of a Job Manager task to be launched when a job is started under this schedule.

JobPreparationTask

Gets or sets the Job Preparation task for jobs created under this schedule.

JobReleaseTask

Gets or sets the Job Release task for jobs created under this schedule.

Metadata

Gets or sets a list of name-value pairs associated with each job created under this schedule as metadata.

OnAllTasksComplete

Gets or sets the action the Batch service should take when all tasks in a job created under this schedule are in the completed state.

OnTaskFailure

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

PoolInfo

Gets or sets the pool on which the Batch service runs the tasks of jobs created under this schedule.

Priority

Gets or sets the priority of jobs created under this schedule.

UsesTaskDependencies

Gets or sets whether tasks in the job can define dependencies on each other. The default is false.

Applies to