DockerImagePull (hub/docker_images.py)

QwenPaw · src/qwenpaw/hub/docker_images.py · python · Apache-2.0
infra

Manages asynchronous Docker image pulls with deduplication, progress tracking, and error handling in memory.

# Source: https://github.com/agentscope-ai/QwenPaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# -*- coding: utf-8 -*-
"""In-memory Docker image pull coordination for QwenPaw Hub."""

from __future__ import annotations

import threading
import uuid
from concurrent.futures import ThreadPoolExecutor
from dataclasses import asdict, dataclass, replace

from .database import utc_now
from .docker_provisioner import DockerRuntimeProvisioner


@dataclass(frozen=True)
class DockerImagePull:
    """Describe one asynchronous Docker image pull."""

    pull_id: str
    reference: str
    status: str
    progress: int
    message: str
    error: str | None
    created_at: str
    updated_at

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key