From dece0c19c873e78011bfd0a3044d5a752690ad10 Mon Sep 17 00:00:00 2001 From: Guillaume Vernieres Date: Thu, 23 May 2024 16:41:11 +0000 Subject: [PATCH] create db file --- test/gw-ci/run_exp.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/gw-ci/run_exp.sh b/test/gw-ci/run_exp.sh index 277abd825..8040860a0 100755 --- a/test/gw-ci/run_exp.sh +++ b/test/gw-ci/run_exp.sh @@ -9,6 +9,10 @@ WORKFLOW_XML=${pslot}/EXPDIR/${pslot}/${pslot}.xml WORKFLOW_DB=${pslot}/EXPDIR/${pslot}/${pslot}.db # Boot the task +echo "booting $TASK_NAME for cycle $CYCLE" +if [[ ! -e "$WORKFLOW_DB" ]]; then + rocotorun -w "$WORKFLOW_XML" -d "$WORKFLOW_DB" -t "$TASK_NAME" -c "$CYCLE" +fi rocotoboot -w "$WORKFLOW_XML" -d "$WORKFLOW_DB" -t "$TASK_NAME" -c "$CYCLE" while true; do @@ -25,6 +29,9 @@ while true; do elif [[ "$STATUS" == "FAILED" ]]; then echo "The task failed." exit 1 + elif [[ "$STATUS" == "DEAD" ]]; then + echo "The task is dead." + exit 1 else echo "The task is in state: $STATUS" fi