ComputeBatchModelFactory.ExitOptions Method
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.
Specifies how the Batch service responds to a particular exit condition.
public static Azure.Compute.Batch.ExitOptions ExitOptions(Azure.Compute.Batch.BatchJobActionKind? jobAction = default, Azure.Compute.Batch.DependencyAction? dependencyAction = default);
static member ExitOptions : Nullable<Azure.Compute.Batch.BatchJobActionKind> * Nullable<Azure.Compute.Batch.DependencyAction> -> Azure.Compute.Batch.ExitOptions
Public Shared Function ExitOptions (Optional jobAction As Nullable(Of BatchJobActionKind) = Nothing, Optional dependencyAction As Nullable(Of DependencyAction) = Nothing) As ExitOptions
Parameters
- jobAction
- Nullable<BatchJobActionKind>
An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
- dependencyAction
- Nullable<DependencyAction>
An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks.
Returns
A new ExitOptions instance for mocking.