Skip to content

Commit

Permalink
Also dill the creator methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcschrg committed Oct 18, 2024
1 parent 0146734 commit ee861a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mango/container/mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def create_agent_process_environment(
"""
asyncio.set_event_loop(asyncio.new_event_loop())
container_data.codec = dill.loads(container_data.codec)
agent_creator = dill.loads(agent_creator)
mirror_container_creator = dill.loads(mirror_container_creator)

async def start_agent_loop():
container = mirror_container_creator(
Expand Down Expand Up @@ -453,8 +455,8 @@ def create_agent_process(self, agent_creator, container, mirror_container_creato
clock=container.clock,
kwargs=container._kwargs,
),
agent_creator,
mirror_container_creator,
dill.dumps(agent_creator),
dill.dumps(mirror_container_creator),
to_pipe_message,
self._main_queue,
to_pipe,
Expand Down

0 comments on commit ee861a5

Please sign in to comment.