Condividi tramite


ExitConditions Class

Definition

Specifies how the Batch service should respond when the Task completes.

public class ExitConditions : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.ExitConditions>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.ExitConditions>
type ExitConditions = class
    interface IJsonModel<ExitConditions>
    interface IPersistableModel<ExitConditions>
Public Class ExitConditions
Implements IJsonModel(Of ExitConditions), IPersistableModel(Of ExitConditions)
Inheritance
ExitConditions
Implements

Constructors

ExitConditions()

Initializes a new instance of ExitConditions.

Properties

Default

How the Batch service should respond if the Task fails with an exit condition not covered by any of the other properties. This value is used if the Task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection.

ExitCodeRanges

A list of Task exit code ranges and how the Batch service should respond to them.

ExitCodes

A list of individual Task exit codes and how the Batch service should respond to them.

FileUploadError

How the Batch service should respond if a file upload error occurs. If the Task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence.

PreProcessingError

How the Batch service should respond if the Task fails to start due to an error.

Explicit Interface Implementations

IJsonModel<ExitConditions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ExitConditions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ExitConditions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExitConditions>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ExitConditions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to