Skip to content

Commit

Permalink
run using tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
PVirie committed Dec 25, 2024
1 parent dee32f4 commit 8aa9b59
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/run_exp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ jobs:
ssh -o StrictHostKeyChecking=no ${{ secrets.REMOTE_MACHINE_CONNECTION_STR }} << 'EOF'
cd ~/thinking
git pull
source .venv/bin/activate
python3 tasks/rl_hopper.py --clear
python3 tasks/rl_hopper.py
# source .venv/bin/activate
# python3 tasks/rl_hopper.py --clear
# python3 tasks/rl_hopper.py
# use tmux instead
# terminate existing session or restart
tmux kill-session -t runpod-rl_hopper
tmux new-session -d -s runpod-rl_hopper
tmux send-keys -t runpod-rl_hopper "source .venv/bin/activate" C-m
tmux send-keys -t runpod-rl_hopper "python3 tasks/rl_hopper.py --clear" C-m
tmux send-keys -t runpod-rl_hopper "python3 tasks/rl_hopper.py" C-m
EOF

0 comments on commit 8aa9b59

Please sign in to comment.