tessl install tessl/pypi-azure-batch@14.2.0Microsoft Azure Batch Client Library for Python providing comprehensive APIs for managing batch computing workloads in Azure cloud
Agent Success
Agent success rate when using this tile
91%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.07x
Baseline
Agent success rate without this tile
85%
A utility for managing Azure Batch compute pools with support for pool creation, verification, and cleanup operations.
Create compute pools with specified configurations including VM size and node counts.
Remove pools from the batch account after they are no longer needed.
@generates
class PoolManager:
"""Manager for Azure Batch compute pool operations."""
def __init__(self, batch_client):
"""
Initialize the PoolManager with a configured batch client.
Args:
batch_client: An authenticated Azure Batch client instance
"""
pass
def create_pool(self, pool_id, vm_size, target_dedicated_nodes):
"""
Create a new compute pool with the specified configuration.
Creates a pool using Virtual Machine Configuration with Ubuntu 20.04 LTS.
The pool uses the specified VM size and number of dedicated nodes.
Args:
pool_id (str): Unique identifier for the pool
vm_size (str): Azure VM size (e.g., "Standard_D2s_v3")
target_dedicated_nodes (int): Number of dedicated compute nodes to provision
Returns:
None
Raises:
Exception: If pool creation fails or pool already exists
"""
pass
def pool_exists(self, pool_id):
"""
Check if a pool with the given ID exists in the batch account.
Args:
pool_id (str): Pool identifier to check
Returns:
bool: True if the pool exists, False otherwise
"""
pass
def delete_pool(self, pool_id):
"""
Delete the specified pool from the batch account.
Args:
pool_id (str): Pool identifier to delete
Returns:
None
Raises:
Exception: If pool deletion fails or pool does not exist
"""
passProvides Azure Batch client capabilities for managing batch computing workloads, including pool creation, verification, and deletion operations.
@satisfied-by