Skip to content

Commit

Permalink
BUG: append subpool logging (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
UranusSeven authored Sep 14, 2023
1 parent 17881dd commit 30f4f4c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions python/xoscar/backends/indigen/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,6 @@ async def _create_sub_pool(
status_queue.put(process_status)
await pool.join()

@classmethod
def _append_sub_pool(
cls,
config: ActorPoolConfig,
_process_index: int,
_status_queue: multiprocessing.Queue,
):
coro = cls._create_sub_pool(config, _process_index, _status_queue)
asyncio.run(coro)

async def append_sub_pool(
self,
label: str | None = None,
Expand Down Expand Up @@ -353,7 +343,7 @@ def start_pool_in_process():

with _suspend_init_main():
process = ctx.Process(
target=MainActorPool._append_sub_pool,
target=self._start_sub_pool,
args=(self._config, process_index, status_queue),
name=f"IndigenActorPool{process_index}",
)
Expand Down

0 comments on commit 30f4f4c

Please sign in to comment.