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
10 changes: 2 additions & 8 deletions rlix/pipeline/miles_model_update_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,8 @@ async def _ray_get(refs):
just delegate.
"""
if isinstance(refs, list):
return await asyncio.gather(*[_await_ref(r) for r in refs])
return await _await_ref(refs)


async def _await_ref(ref):
import asyncio # noqa: F401 -- module-level import handled below

return await ref
return await asyncio.gather(*refs)
return await refs


__all__ = ["SyncSessionPlan", "MilesModelUpdateService"]