Microsoft Azure Batch Client Library for Python providing comprehensive APIs for managing batch computing workloads in Azure cloud
91
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
Install with Tessl CLI
npx tessl i tessl/pypi-azure-batchdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10