Create new training job in a screen

This commit is contained in:
Matt McWilliams 2023-07-05 16:47:16 -04:00
parent fefeefa96e
commit 9ee45587e0
2 changed files with 9 additions and 1 deletions

View File

@ -27,4 +27,6 @@ else
echo "No email script, not sending." echo "No email script, not sending."
fi fi
bash ./scripts/train.sh "${JSON}" ID=$(echo $JSON | jq -r '.id')
screen -dm -S "${ID}" bash ./scripts/train.sh "${JSON}"

6
scripts/test.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
for i in {1..500}; do
echo "${1} ${i}"
sleep 2
done