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

Task Monitor

Build a command-line utility that monitors Azure Batch tasks within a specific job and displays their status and execution details.

Requirements

Your program should accept a job ID as a command-line argument and perform the following operations:

  1. List all tasks in the specified job
  2. Display task information for each task, including:
    • Task ID
    • Current state (e.g., active, running, completed)
    • Exit code (if completed)
    • Start and end times (if available)
  3. Format the output in a readable way to the console

The program should handle scenarios where:

  • The job has no tasks
  • Tasks are in various states
  • Connection errors occur

Test Cases

  • When the job "test-job-empty" has no tasks, the program displays "No tasks found for job: test-job-empty" @test
  • When the job "test-job-001" has 3 tasks, the program lists all 3 task IDs @test
  • When retrieving details for task "task-001" in job "test-job-001", the program displays the task state, exit code, and execution times @test

Dependencies { .dependencies }

azure-batch { .dependency }

Provides Azure Batch client capabilities for managing batch computing workloads.