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 distributed computing task coordinator that performs matrix multiplication across multiple compute nodes using parallel processing.
You need to implement a system that coordinates a distributed matrix multiplication operation across multiple compute nodes in a cloud environment. The system should split the work across multiple nodes, where one node acts as the primary coordinator and other nodes perform subtasks.
The coordinator should:
@generates
def create_multi_instance_task(
task_id: str,
job_id: str,
pool_id: str,
num_instances: int,
coordination_command: str,
worker_command: str,
resource_files: list
) -> dict:
"""
Creates a multi-instance task configuration for distributed matrix multiplication.
Args:
task_id: Unique identifier for the task
job_id: ID of the job this task belongs to
pool_id: ID of the compute pool
num_instances: Number of compute nodes to use (minimum 3)
coordination_command: Command line for the primary coordinator task
worker_command: Command line for worker subtasks
resource_files: List of input files to share across all instances
Returns:
A dictionary containing the multi-instance task configuration with:
- Task ID and basic settings
- Multi-instance configuration with number of instances
- Coordination command for primary task
- Worker command for subtasks
- Resource files for all instances
- Inter-node communication settings enabled
Raises:
ValueError: If num_instances < 3
"""
passProvides Azure Batch client functionality for creating and managing distributed computing tasks across multiple nodes.
@satisfied-by