CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-data-tables

Microsoft Azure Data Tables Client Library for Python

90

0.96x
Overview
Eval results
Files

task.mdevals/scenario-1/

Resilient Table Client

Build a resilient client for accessing an Azure Table Storage service that can handle intermittent network failures and service throttling.

Requirements

Your implementation should provide a function that creates a configured table client with custom retry behavior:

  1. Retry Configuration: The client should retry failed requests with exponential backoff
  2. Connection Reliability: Handle connection timeouts gracefully
  3. Throttling Tolerance: Account for service rate limiting with appropriate delays
  4. Secondary Failover: Enable automatic failover to secondary endpoints when available

Capabilities

Client Configuration with Custom Retry Policy

Create a function create_resilient_client that returns a configured TableClient with the following retry characteristics:

  • It creates a client with a total of 5 retry attempts for failed operations @test
  • It configures 2 retry attempts specifically for connection errors @test
  • It sets an exponential backoff factor of 2.0 for increasing delays between retries @test
  • It enables automatic failover to secondary storage endpoint on failure @test

Implementation

@generates

API

from azure.data.tables import TableClient

def create_resilient_client(
    endpoint: str,
    table_name: str,
    credential
) -> TableClient:
    """
    Create a TableClient configured with custom retry policies for resilience.

    Args:
        endpoint: The Table service endpoint URL
        table_name: Name of the table to access
        credential: Authentication credential for the service

    Returns:
        A configured TableClient instance with custom retry behavior
    """
    pass

Dependencies { .dependencies }

azure-data-tables { .dependency }

Provides Azure Table Storage client functionality with configurable retry policies.

Install with Tessl CLI

npx tessl i tessl/pypi-azure-data-tables

tile.json