mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 17:23:23 +08:00
Add script for shutting down tests. (#4203)
This commit is contained in:
committed by
Philipp Moritz
parent
f21e6a2cff
commit
c4aa90314d
@@ -24,6 +24,12 @@ relevant machine, attach to the tmux session (usually ``tmux a -t 0``), inspect
|
||||
the logs under ``/tmp/ray/session*/logs/``, and also inspect
|
||||
``/tmp/ray/session*/debug_state.txt``.
|
||||
|
||||
Shut Down the Workloads
|
||||
-----------------------
|
||||
|
||||
The instances running the workloads can all be killed by running
|
||||
``./shut_down_workloads.sh``.
|
||||
|
||||
Adding a Workload
|
||||
-----------------
|
||||
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||||
|
||||
pushd "$ROOT_DIR"
|
||||
|
||||
# Kill all of the workloads.
|
||||
for workload_file in "$ROOT_DIR"/workloads/*; do
|
||||
file_name=$(basename -- $workload_file)
|
||||
workload_name="${file_name%.*}"
|
||||
ray down -y config.yaml --cluster-name="$workload_name" &
|
||||
done
|
||||
|
||||
# Wait for all of the ray down commands to finish.
|
||||
for pid in `jobs -p`; do
|
||||
wait $pid
|
||||
done
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user