ray_template/deployment_scripts/start-ray-worker.sh

19 lines
432 B
Bash
Raw Normal View History

2024-01-05 12:22:52 +00:00
#!/bin/bash
if [ $# -ne 5 ]; then
echo "Usage: $0 <ws_dir> <env_path> <ray_address> <redis_password> <obj_store_memory>"
2024-01-05 12:22:52 +00:00
exit 1
fi
export WS_DIR=$1
export ENV_PATH=$2
2024-01-05 12:22:52 +00:00
export RAY_ADDRESS=$3
export REDIS_PASSWORD=$4
export OBJECT_STORE_MEMORY=$5
source $ENV_PATH/bin/activate
ray start --address=$RAY_ADDRESS \
--redis-password=$REDIS_PASSWORD \
--object-store-memory=$OBJECT_STORE_MEMORY \
--block