Skip to content

Commit c099cc9

Browse files
committed
rename
1 parent be3107b commit c099cc9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

eval_protocol/pytest/evaluation_test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

eval_protocol/pytest/remote_rollout_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

eval_protocol/training/gepa_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)