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-3/

Batch Task Manager

A utility for managing computational tasks in Azure Batch jobs with support for task creation, bulk operations, and cleanup.

Capabilities

Basic Task Creation

  • Creates a single task with task ID "simple-task", command line "echo 'Hello World'", and display name "Simple Task" @test
  • Creates a task with environment variables, including a variable "DATA_PATH" set to "/data/input" @test

Bulk Task Operations

  • Adds multiple tasks (at least 5) to a job in a single bulk operation @test
  • Returns collection results that include status information for each task added @test

Task Retrieval and Listing

  • Retrieves a specific task by job ID and task ID, returning task information @test
  • Lists all tasks in a job, returning an iterable of task objects @test

Task Deletion

  • Deletes a task from a job by specifying job ID and task ID @test
  • Successfully removes the task so it no longer appears when listing job tasks @test

Implementation

@generates

API

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

Dependencies { .dependencies }

azure-batch { .dependency }

Provides Azure Batch client APIs for managing batch computing workloads.

@satisfied-by