Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
  • Loading branch information
KuilongCui committed Jan 21, 2025
1 parent 041ecb6 commit 57d2180
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion llumnix/llumlet/llumlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ def get_instance_info(self) -> InstanceInfo:
self.instance_load_calculator.compute_instance_load(instance_info)
return instance_info

def is_ready(self) -> InstanceArgs:
def is_ready(self) -> bool:
return True

def get_instance_args(self) -> InstanceArgs:
return self.instance_args

def get_all_request_ids(self) -> List[str]:
Expand Down
2 changes: 1 addition & 1 deletion llumnix/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def connect_to_instances_done_callback(instance_id: str, instance_actor_handle:
for instance_actor_name, instance_actor_handle in zip(instance_actor_names, instance_actor_handles):
instance_id = instance_actor_name[len('instance_'):]
if instance_id not in self.instances:
task = asyncio.gather(instance_actor_handle.is_ready.remote(), return_exceptions=True)
task = asyncio.gather(instance_actor_handle.get_instance_args.remote(), return_exceptions=True)
task.add_done_callback(partial(connect_to_instances_done_callback, instance_id, instance_actor_handle))
tasks.append(task)
await asyncio.gather(*tasks)
Expand Down
5 changes: 4 additions & 1 deletion tests/unit_test/global_scheduler/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def set_instance_info(self, instance_info):
def get_instance_info(self):
return self.instance_info

def is_ready(self) -> InstanceArgs:
def is_ready(self) -> bool:
return True

def get_instance_args(self) -> InstanceArgs:
return InstanceArgs()

def get_all_request_ids(self):
Expand Down

0 comments on commit 57d2180

Please sign in to comment.