Skip to content

Commit

Permalink
Merge pull request #87 from UoA-CARES/fix-retrain.bash
Browse files Browse the repository at this point in the history
Sigkill after timeout
  • Loading branch information
Bac0nEater authored Jul 26, 2023
2 parents b04de68 + 8734db8 commit 744e4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi
# Rerun every $1 time
while true; do
colcon build
timeout "$1" ros2 launch reinforcement_learning train.launch.py
timeout "$1" -s SIGKILL ros2 launch reinforcement_learning train.launch.py

# Get the latest folder in rl_logs
latest_folder=$(ls -lt ./rl_logs | grep '^d' | head -n 1 | awk '{print $NF}')
Expand Down

0 comments on commit 744e4bb

Please sign in to comment.