JobManagerTask Class

Definition

Specifies details of a Job Manager task.

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

Remarks

The Job Manager task is automatically started when the job is created. The Batch service tries to schedule the Job Manager task before any other tasks in the job. When shrinking a pool, the Batch service tries to preserve compute nodes where Job Manager tasks are running for as long as possible (that is, nodes running 'normal' tasks are removed before nodes running Job Manager tasks). When a Job Manager task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle nodes available, the system may terminate one of the running tasks in the pool and return it to the queue in order to make room for the Job Manager task to restart. Note that a Job Manager task in one job does not have priority over tasks in other jobs. Across jobs, only job level priorities are observed. For example, if a Job Manager in a priority 0 job needs to be restarted, it will not displace tasks of a priority 1 job.

Constructors

JobManagerTask()

Initializes a new instance of the JobManagerTask class.

Properties

AllowLowPriorityNode

Gets or sets whether the Job Manager task may run on a low-priority compute node.

ApplicationPackageReferences

Gets or sets a list of application 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 Job Manager task.

Constraints

Gets or sets constraints that apply to the Job Manager task.

ContainerSettings

Gets or sets the settings for the container under which the Job Manager task runs.

DisplayName

Gets or sets the display name of the Job Manager task.

EnvironmentSettings

Gets or sets a list of environment variable settings for the Job Manager task.

Id

Gets or sets a string that uniquely identifies the Job Manager task within the job.

KillJobOnCompletion

Gets or sets whether completion of the Job Manager task signifies completion of the entire job.

OutputFiles

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

ResourceFiles

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

RunExclusive

Gets or sets whether the Job Manager task requires exclusive use of the compute node where it runs.

UserIdentity

Gets or sets the user identity under which the Job Manager task runs.

Applies to