From 9ee45587e034ce1ee33b0194510e07beaa805ca1 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Wed, 5 Jul 2023 16:47:16 -0400 Subject: [PATCH] Create new training job in a screen --- scripts/claim.sh | 4 +++- scripts/test.sh | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 scripts/test.sh diff --git a/scripts/claim.sh b/scripts/claim.sh index 1d0935b..8e3ae70 100644 --- a/scripts/claim.sh +++ b/scripts/claim.sh @@ -27,4 +27,6 @@ else echo "No email script, not sending." fi -bash ./scripts/train.sh "${JSON}" +ID=$(echo $JSON | jq -r '.id') + +screen -dm -S "${ID}" bash ./scripts/train.sh "${JSON}" diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100644 index 0000000..9fe39d7 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for i in {1..500}; do + echo "${1} ${i}" + sleep 2 +done