JobPreparationTask Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Job Preparation task to run before any tasks of the job on any given compute node.
public class JobPreparationTask
type JobPreparationTask = class
Public Class JobPreparationTask
- Inheritance
-
JobPreparationTask
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
JobPreparationTask() |
Initializes a new instance of the JobPreparationTask class. |
JobPreparationTask(String) |
Initializes a new instance of the JobPreparationTask class. |
Properties
CommandLine |
Gets or sets the command line of the task. |
Constraints |
Gets or sets the execution constraints provided by the user for this Job Preparation task. |
ContainerSettings |
Gets or sets the settings for the container under which the task runs. |
EnvironmentSettings |
Gets or sets the collection of EnvironmentSetting instances. |
Id |
Gets or sets the id of the task. |
RerunOnComputeNodeRebootAfterSuccess |
Gets or sets whether the Batch service should rerun the Job Preparation task after a compute node reboots. |
ResourceFiles |
Gets or sets a list of files that the Batch service will download to the compute node before running the command line. |
UserIdentity |
Gets or sets the user identity under which the task runs. |
WaitForSuccess |
Gets or sets whether the Batch service should wait for the successful completion of the Job Preparation task before scheduling any tasks on the compute node. |