Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions verifiers/v1/cli/eval/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ async def run_eval_server(config: EvalConfig) -> list[Episode]:
from functools import partial

from verifiers.v1.configs.cli.env import pool_serve_kwargs
from verifiers.v1.serve import EnvClient, env_config_data, serve_env
from verifiers.v1.serve import (
EnvClient,
env_config_data,
serve_env,
wait_for_address,
)
from verifiers.v1.utils.logging import setup_logging

legacy = config.is_legacy
Expand Down Expand Up @@ -155,9 +160,8 @@ async def run_eval_server(config: EvalConfig) -> list[Episode]:
proc.start()
child_conn.close() # the child holds its end; we keep parent_conn so our exit closes it
try:
address = await asyncio.to_thread(address_queue.get, timeout=600)
address = await wait_for_address(proc, address_queue, log_file=log_file)
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
client = EnvClient(address=address)
await client.wait_for_server_startup(timeout=600)
# A v1 run dispatches — and resumes — tasks by content: the client owns them,
# and `resume.task_key` is their identity. Only the legacy bridge is addressed
# by dataset row (its dataset lives server-side, reported via `info`), and
Expand Down
10 changes: 9 additions & 1 deletion verifiers/v1/serve/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from verifiers.v1.serve.client import EnvClient
from verifiers.v1.serve.pool import EnvServerPool, env_config_data, serve_env
from verifiers.v1.serve.pool import (
ENV_SERVER_SPAWN_TIMEOUT,
EnvServerPool,
env_config_data,
serve_env,
wait_for_address,
)
from verifiers.v1.serve.server import EnvServer
from verifiers.v1.serve.types import (
HealthRequest,
Expand All @@ -13,6 +19,7 @@
)

__all__ = [
"ENV_SERVER_SPAWN_TIMEOUT",
"EnvClient",
"EnvServer",
"EnvServerPool",
Expand All @@ -26,4 +33,5 @@
"RunResponse",
"env_config_data",
"serve_env",
"wait_for_address",
]
Loading
Loading