Microsoft Azure Batch Client Library for Python providing comprehensive APIs for managing batch computing workloads in Azure cloud
91
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
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