ray/java/cleanup.sh
2020-07-21 16:47:09 -05:00

9 lines
217 B
Bash
Executable file

#!/usr/bin/env bash
# Stop backend processes
ray stop
# Kill Java workers
# shellcheck disable=SC2009
ps aux | grep DefaultWorker | grep -v grep | awk '{print $2}' | xargs kill -9
# Remove temp files
rm -rf /tmp/ray