tessl install tessl/github-python--cpython@3.13.0CPython is the reference implementation of the Python programming language providing the core interpreter, runtime system, and comprehensive standard library.
Agent Success
Agent success rate when using this tile
96%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.07x
Baseline
Agent success rate without this tile
90%
Run multiple shell commands concurrently with bounded parallelism, per-command timeouts, and optional fail-fast cancellation.
max_concurrency=2 with no timeout, both commands finish, no more than the limit run at once, and outputs are returned in the same order as the input list. @testreturn_code=None, and does not block faster commands from completing normally. @testfail_fast=True, the first command that exits with a non-zero status causes any still-running commands to be cancelled (reported with return_code=None and timed_out=False), while completed results are preserved. @test@generates
from dataclasses import dataclass
from typing import List, Sequence
@dataclass
class CommandResult:
command: Sequence[str] # argv tokens for the command
return_code: int | None # None when cancelled or timed out
stdout: str
stderr: str
timed_out: bool
def run_commands(
commands: List[Sequence[str]],
*,
max_concurrency: int,
timeout_seconds: float | None = None,
fail_fast: bool = False,
) -> List[CommandResult]:
"""Executes shell commands concurrently with a concurrency limit and optional per-command timeout."""Provides concurrency primitives, async subprocess handling, and synchronization utilities. @satisfied-by