maple.backend.policy.base.PolicyBackend.wait_for_ready
- PolicyBackend.wait_for_ready(handle: PolicyHandle) bool
Wait for container to be ready to accept requests.
Polls the container’s health endpoint until it responds successfully or the startup timeout is reached. Used during container initialization to ensure the server is running before attempting to load the model.
- Parameters:
handle – Policy handle to check.
- Returns:
True if container became ready, False if timeout reached.