PoolOperations.DisableComputeNodeScheduling Method

Definition

Disables task scheduling on the specified compute node.

C#
public void DisableComputeNodeScheduling(string poolId, string computeNodeId, Microsoft.Azure.Batch.Common.DisableComputeNodeSchedulingOption? disableComputeNodeSchedulingOption, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);

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

Product Versions
Azure SDK for .NET Latest