CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-batch

Microsoft Azure Batch Client Library for Python providing comprehensive APIs for managing batch computing workloads in Azure cloud

91

1.07x
Overview
Eval results
Files

task.mdevals/scenario-2/

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.

Install with Tessl CLI

npx tessl i tessl/pypi-azure-batch

tile.json