or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/azure-batch@14.2.x
tile.json

tessl/pypi-azure-batch

tessl install tessl/pypi-azure-batch@14.2.0

Microsoft 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%

task.mdevals/scenario-9/

Batch Pool Manager

A utility for managing Azure Batch compute pools with support for pool creation, verification, and cleanup operations.

Capabilities

Pool Creation

Create compute pools with specified configurations including VM size and node counts.

  • Creates a new pool with the given pool ID, VM size, and dedicated node count @test
  • Validates that the pool was created successfully by checking if it exists @test

Pool Deletion

Remove pools from the batch account after they are no longer needed.

  • Deletes an existing pool by its pool ID @test
  • Verifies that the pool no longer exists after deletion @test

Implementation

@generates

API

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
        """
        pass

Dependencies { .dependencies }

azure-batch { .dependency }

Provides Azure Batch client capabilities for managing batch computing workloads, including pool creation, verification, and deletion operations.

@satisfied-by