Delen via


JobReleaseTask Constructors

Definition

Overloads

JobReleaseTask()

Initializes a new instance of the JobReleaseTask class.

JobReleaseTask(String, String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, Nullable<TimeSpan>, Nullable<TimeSpan>, UserIdentity)

Initializes a new instance of the JobReleaseTask class.

JobReleaseTask()

Source:
JobReleaseTask.cs

Initializes a new instance of the JobReleaseTask class.

public JobReleaseTask ();
Public Sub New ()

Applies to

JobReleaseTask(String, String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, Nullable<TimeSpan>, Nullable<TimeSpan>, UserIdentity)

Source:
JobReleaseTask.cs

Initializes a new instance of the JobReleaseTask class.

public JobReleaseTask (string commandLine, string id = default, Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings containerSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> resourceFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> environmentSettings = default, TimeSpan? maxWallClockTime = default, TimeSpan? retentionTime = default, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = default);
new Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask : string * string * Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity -> Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask
Public Sub New (commandLine As String, Optional id As String = Nothing, Optional containerSettings As TaskContainerSettings = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional maxWallClockTime As Nullable(Of TimeSpan) = Nothing, Optional retentionTime As Nullable(Of TimeSpan) = Nothing, Optional userIdentity As UserIdentity = Nothing)

Parameters

commandLine
String

The command line of the Job Release Task.

id
String

A string that uniquely identifies the Job Release Task within the Job.

containerSettings
TaskContainerSettings

The settings for the container under which the Job Release Task runs.

resourceFiles
IList<ResourceFile>

A list of files that the Batch service will download to the Compute Node before running the command line. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.

environmentSettings
IList<EnvironmentSetting>

A list of environment variable settings for the Job Release Task.

maxWallClockTime
Nullable<TimeSpan>

The maximum elapsed time that the Job Release Task may run on a given Compute Node, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it. The default value is 15 minutes. You may not specify a timeout longer than 15 minutes. If you do, the Batch service rejects it with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).

retentionTime
Nullable<TimeSpan>

The minimum time to retain the Task directory for the Job Release Task on the Compute Node. After this time, the Batch service may delete the Task directory and all its contents.

userIdentity
UserIdentity

The user identity under which the Job Release Task runs.

Applies to