ray/java/cleanup.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
217 B
Bash
Raw Normal View History

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