MCPcopy
hub / github.com/microsoft/agent-lightning / _timeout_error_in_runner

Function _timeout_error_in_runner

tests/execution/test_client_server.py:402–408  ·  view source on GitHub ↗
(store: LightningStore, worker_id: int, event: ExecutionEvent)

Source from the content-addressed store, hash-verified

400
401
402async def _timeout_error_in_runner(store: LightningStore, worker_id: int, event: ExecutionEvent) -> None:
403 # Provoke client's validation (pre-request), then raise TimeoutError.
404 with pytest.raises(ValueError):
405 await store.wait_for_rollouts(rollout_ids=["r1"], timeout=0.2)
406 _ = worker_id
407 event.set()
408 raise TimeoutError("runner timeout")
409
410
411async def _waiting_for_rollout_runner(store: LightningStore, worker_id: int, event: ExecutionEvent) -> None:

Callers

nothing calls this directly

Calls 2

wait_for_rolloutsMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected