Delen via


ComputeNode.DisableScheduling Method

Definition

Disables task scheduling on the compute node.

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

Parameters

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 DisableSchedulingAsync(Nullable<DisableComputeNodeSchedulingOption>, IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to