Leggere in inglese

Condividi tramite


ComputeNodeOperationsExtensions.DisableSchedulingAsync Method

Definition

Disables Task scheduling on the specified Compute Node.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingHeaders> DisableSchedulingAsync (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.DisableComputeNodeSchedulingOption? nodeDisableSchedulingOption = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingOptions computeNodeDisableSchedulingOptions = default, System.Threading.CancellationToken cancellationToken = default);

Parameters

operations
IComputeNodeOperations

The operations group for this extension method.

poolId
String

The ID of the Pool that contains the Compute Node.

nodeId
String

The ID of the Compute Node on which you want to disable Task scheduling.

nodeDisableSchedulingOption
Nullable<DisableComputeNodeSchedulingOption>

What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion'

computeNodeDisableSchedulingOptions
ComputeNodeDisableSchedulingOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

You can disable Task scheduling on a Compute Node only if its current scheduling state is enabled.

Applies to