共用方式為


PoolOperations.DisableComputeNodeScheduling Method

Definition

Disables task scheduling on the specified compute node.

public void DisableComputeNodeScheduling (string poolId, string computeNodeId, Microsoft.Azure.Batch.Common.DisableComputeNodeSchedulingOption? disableComputeNodeSchedulingOption, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.DisableComputeNodeScheduling : string * string * Nullable<Microsoft.Azure.Batch.Common.DisableComputeNodeSchedulingOption> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub DisableComputeNodeScheduling (poolId As String, computeNodeId As String, disableComputeNodeSchedulingOption As Nullable(Of DisableComputeNodeSchedulingOption), Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

Parameters

poolId
String

The id of the pool.

computeNodeId
String

The id of the compute node.

disableComputeNodeSchedulingOption
Nullable<DisableComputeNodeSchedulingOption>

Specifies what to do with currently running tasks. The default is Requeue.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.

Remarks

This is a blocking operation. For a non-blocking equivalent, see DisableComputeNodeSchedulingAsync(String, String, Nullable<DisableComputeNodeSchedulingOption>, IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to