mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2 days ago f7c40d48c0727a96843c85990cc36ae5a9ac6888
src/archbuild/builder.py
@@ -158,9 +158,13 @@
    async def __aenter__(self) -> "Builder":
        """Async context manager entry."""
        max_workers = self.config.building.max_workers if self.config.building.parallel else 1
        if self.config.building.parallel:
            max_workers = self.config.building.max_workers
        self._executor = ProcessPoolExecutor(max_workers=max_workers)
        logger.info(f"Builder initialized with {max_workers} workers")
            logger.info(f"Builder initialized with {max_workers} workers (parallel)")
        else:
            self._executor = None
            logger.info("Builder initialized (sequential)")
        return self
    async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: