From 5bdcf75620a2cfab47620fcbb8571bb15003f4ad Mon Sep 17 00:00:00 2001 From: jiang548 Date: Wed, 4 May 2022 01:02:57 -0400 Subject: [PATCH] stop to fail --- script/network/bts1gensub.sh | 2 +- script/network/bts2gensub.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/network/bts1gensub.sh b/script/network/bts1gensub.sh index 4b6512c..e649a81 100755 --- a/script/network/bts1gensub.sh +++ b/script/network/bts1gensub.sh @@ -107,7 +107,7 @@ echo -e "All the jobs are finished !!\n" email_note $email "Stage 1" "Completed !!!" else echo -e "Please notice that some of the jobs are unfinished. Program will stop and please try to find the problem. \n" -email_note $email "Stage 1" "Stopped ..." +email_note $email "Stage 1" "Failed ..." grep -Eo '[0-9]+$' submit1_log | xargs scancel kill -10 $job_id exit -1 diff --git a/script/network/bts2gensub.sh b/script/network/bts2gensub.sh index 018718b..24db1fa 100755 --- a/script/network/bts2gensub.sh +++ b/script/network/bts2gensub.sh @@ -111,7 +111,7 @@ echo -e "All the jobs are finished !!\n" email_note $email "Stage 2" "Completed !!!" else echo -e "Please notice that some of the jobs are unfinished. Program will stop and please try to find the problem. \n" -email_note $email "Stage 2" "Stopped ..." +email_note $email "Stage 2" "Failed ..." grep -Eo '[0-9]+$' submit2_log | xargs scancel kill -10 $job_id exit -1