Condividi tramite


JobManagerTask Class

Definition

Represents an Azure Batch JobManager task.

public class JobManagerTask
type JobManagerTask = class
Public Class JobManagerTask
Inheritance
JobManagerTask

Remarks

Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the MaxTaskRetryCount. Even if the MaxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing.

Constructors

JobManagerTask()

Initializes a new instance of the JobManagerTask class.

JobManagerTask(String, String)

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. If omitted, the default is true.

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 task.

Constraints

Gets or sets the execution constraints for this JobManager task.

ContainerSettings

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

DisplayName

Gets or sets the display name of the JobManager task.

EnvironmentSettings

Gets or sets a set of environment settings for the JobManager task.

Id

Gets or sets the id of the task.

KillJobOnCompletion

Gets or sets a value that indicates whether to terminate all tasks in the job and complete the job when the job manager task completes.

OutputFiles

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

RequiredSlots

Gets or sets the number of scheduling slots that the Task required to run.

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 task runs.

Applies to