ComputeNodeOperationsExtensions.DisableSchedulingAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
static member DisableSchedulingAsync : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * Nullable<Microsoft.Azure.Batch.Protocol.Models.DisableComputeNodeSchedulingOption> * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingHeaders>
<Extension()>
Public Function DisableSchedulingAsync (operations As IComputeNodeOperations, poolId As String, nodeId As String, Optional nodeDisableSchedulingOption As Nullable(Of DisableComputeNodeSchedulingOption) = Nothing, Optional computeNodeDisableSchedulingOptions As ComputeNodeDisableSchedulingOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputeNodeDisableSchedulingHeaders)
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
Azure SDK for .NET