Dela via


JobReleaseTask Class

Definition

The Job Release Task runs when the Job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the Job is still active, the Job's maximum wall clock time constraint is reached, and the Job is still active, or the Job's Job Manager Task completed, and the Job is configured to terminate when the Job Manager completes. The Job Release Task runs on each Node where Tasks of the Job have run and the Job Preparation Task ran and completed. If you reimage a Node after it has run the Job Preparation Task, and the Job ends without any further Tasks of the Job running on that Node (and hence the Job Preparation Task does not re-run), then the Job Release Task does not run on that Compute Node. If a Node reboots while the Job Release Task is still running, the Job Release Task runs again when the Compute Node starts up. The Job is not marked as complete until all Job Release Tasks have completed. The Job Release Task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the taskSlotsPerNode limit specified on the Pool.

public class JobReleaseTask
type JobReleaseTask = class
Public Class JobReleaseTask
Inheritance
JobReleaseTask

Constructors

JobReleaseTask()

Initializes a new instance of the JobReleaseTask class.

JobReleaseTask(String)

Initializes a new instance of the JobReleaseTask class.

Properties

CommandLine

Gets or sets the command line of the 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.

MaxWallClockTime

Gets or sets the maximum duration of time for which a task is allowed to run from the time it is created.

ResourceFiles

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

RetentionTime

Gets or sets the duration of time for which files in the task's working directory are retained, from the time it completes execution. After this duration, the task's working directory is reclaimed.

UserIdentity

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

Applies to