Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion infscale/controller/job_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ async def _assign_resources_for_recovery(
wrk_resources_map = {}

while True:
self.context._manage_agent_metadata()
wrk_resources_map = self._get_wrk_resources_map(failed_wrk_ids)

if len(wrk_resources_map) == len(failed_wrk_ids):
Expand Down Expand Up @@ -608,9 +609,12 @@ def _search_gpu_on_all_agents(
if agent_id == curr_agent_id:
continue

return self._assign_available_gpu_to_worker(
assign_success = self._assign_available_gpu_to_worker(
agent_id, resources, wrk_id, wrk_agent_map, agent_gpu_map
)

if assign_success:
return True

return False

Expand Down