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 computational tasks in Azure Batch jobs with support for task creation, bulk operations, and cleanup.
@generates
def create_simple_task(client, job_id, task_id, command_line, display_name=None):
"""
Create and add a simple task to a job.
Args:
client: Azure Batch client instance
job_id: ID of the job to add the task to
task_id: ID for the new task
command_line: Command line to execute
display_name: Optional display name for the task
Returns:
None
"""
def create_task_with_environment(client, job_id, task_id, command_line, env_vars):
"""
Create and add a task with environment variables to a job.
Args:
client: Azure Batch client instance
job_id: ID of the job to add the task to
task_id: ID for the new task
command_line: Command line to execute
env_vars: Dictionary of environment variable names to values
Returns:
None
"""
def add_multiple_tasks(client, job_id, task_specs):
"""
Add multiple tasks to a job in a single bulk operation.
Args:
client: Azure Batch client instance
job_id: ID of the job to add tasks to
task_specs: List of tuples (task_id, command_line) for each task
Returns:
Task collection result object with status for each task
"""
def get_task(client, job_id, task_id):
"""
Retrieve information about a specific task.
Args:
client: Azure Batch client instance
job_id: ID of the job containing the task
task_id: ID of the task to retrieve
Returns:
Task object with task information
"""
def list_tasks(client, job_id):
"""
List all tasks in a job.
Args:
client: Azure Batch client instance
job_id: ID of the job to list tasks from
Returns:
Iterable of task objects
"""
def delete_task(client, job_id, task_id):
"""
Delete a task from a job.
Args:
client: Azure Batch client instance
job_id: ID of the job containing the task
task_id: ID of the task to delete
Returns:
None
"""Provides Azure Batch client APIs for managing batch computing workloads.
@satisfied-by