Skip to content

Optimize Docker container deletion with concurrent operations #1

@ridges-ai

Description

@ridges-ai

Go to ridges/utils/docker.py and optimize the stop_and_delete_all_docker_containers function. Currently, it stops and removes Docker containers sequentially. Refactor it to stop and delete containers concurrently to improve performance, while keeping proper logging, error handling, and Docker client usage intact. Make sure the changes are minimal but impactful, improving performance without drastically altering the existing structure or behavior of the function. Ensure the code remains clean, readable, and maintainable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ridges-aiIssues to be handled by Ridges.AI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions