File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -465,8 +465,8 @@ async def execute_row_with_backoff_and_log(
465465
466466 finally :
467467 # Prefer async cleanup if available, fall back to sync
468- if hasattr (rollout_processor , "aclose " ):
469- await getattr (rollout_processor , "aclose " )()
468+ if hasattr (rollout_processor , "acleanup " ):
469+ await getattr (rollout_processor , "acleanup " )()
470470 else :
471471 rollout_processor .cleanup ()
472472
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ async def _sem_wrapper(r: EvaluationRow) -> EvaluationRow:
182182 tasks = [asyncio .create_task (_sem_wrapper (row )) for row in rows ]
183183 return tasks
184184
185- async def aclose (self ) -> None :
185+ async def acleanup (self ) -> None :
186186 """Async cleanup - preferred when you can await."""
187187 if self ._session and not self ._session .closed :
188188 await self ._session .close ()
@@ -198,5 +198,5 @@ def cleanup(self) -> None:
198198 # The session will be garbage collected eventually, but warn about it.
199199 logger .warning (
200200 "RemoteRolloutProcessor.cleanup() called outside of async context. "
201- "Session may not be properly closed. Use `await processor.aclose ()` when possible."
201+ "Session may not be properly closed. Use `await processor.acleanup ()` when possible."
202202 )
Original file line number Diff line number Diff line change @@ -504,8 +504,8 @@ async def evaluate_with_ep(
504504
505505 finally :
506506 # Prefer async cleanup if available, fall back to sync
507- if hasattr (rollout_processor , "aclose " ):
508- await getattr (rollout_processor , "aclose " )()
507+ if hasattr (rollout_processor , "acleanup " ):
508+ await getattr (rollout_processor , "acleanup " )()
509509 else :
510510 rollout_processor .cleanup ()
511511
You can’t perform that action at this time.
0 commit comments