Compartir a través de


BatchJobConstraints Class

Definition

The execution constraints for a Job.

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

Constructors

BatchJobConstraints()

Initializes a new instance of BatchJobConstraints.

Properties

MaxTaskRetryCount

The maximum number of times each Task may be retried. The Batch service retries a Task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try each Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the maximum retry count is -1, the Batch service retries Tasks without limit. The default value is 0 (no retries).

MaxWallClockTime

The maximum elapsed time that the Job may run, measured from the time the Job is created. If the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run.

Explicit Interface Implementations

IJsonModel<BatchJobConstraints>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchJobConstraints>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchJobConstraints>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchJobConstraints>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchJobConstraints>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to