ResizeOperationStatus Class

Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).

Inheritance
ResizeOperationStatus

Constructor

ResizeOperationStatus(*, target_dedicated_nodes: Optional[int] = None, target_low_priority_nodes: Optional[int] = None, resize_timeout: Optional[datetime.timedelta] = None, node_deallocation_option: Optional[Union[str, azure.mgmt.batch.models._batch_management_client_enums.ComputeNodeDeallocationOption]] = None, start_time: Optional[datetime.datetime] = None, errors: Optional[List[azure.mgmt.batch.models._models_py3.ResizeError]] = None, **kwargs)

Variables

target_dedicated_nodes
int

The desired number of dedicated compute nodes in the pool.

target_low_priority_nodes
int

The desired number of low-priority compute nodes in the pool.

resize_timeout
timedelta

The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).

node_deallocation_option
str or ComputeNodeDeallocationOption

The default value is requeue. Possible values include: "Requeue", "Terminate", "TaskCompletion", "RetainedData".

start_time
datetime

The time when this resize operation was started.

errors
list[ResizeError]

This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.