Files
ray/python/ray/rllib/examples/serving/test.sh
T
2018-11-12 16:31:27 -08:00

13 lines
206 B
Bash
Executable File

#!/bin/bash
pkill -f cartpole_server.py
(python cartpole_server.py 2>&1 | grep -v 200) &
pid=$!
while ! curl localhost:9900; do
sleep 1
done
python cartpole_client.py --stop-at-reward=100
kill $pid