Skip to content

Commit

Permalink
Merge pull request fmihpc#989 from ykempf/ci_scancel_full
Browse files Browse the repository at this point in the history
Pass scancel --full to cancel jobs
  • Loading branch information
alhom authored Jun 13, 2024
2 parents 4e3427c + 445a818 commit 0bc093a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ jobs:
#srun -M carrington -t 01:30:00 --job-name CI_testpackage --interactive --nodes=1 -c 4 -n 16 --mem-per-cpu=5G -p short ./small_test_carrington_github_ci.sh
VLASIATOR_CIRUNNER_JOBSPEC_TP=$(sbatch --parsable -o testpackage_run_output.txt ./small_test_carrington_github_ci.sh)
VLASIATOR_CIRUNNER_JOBSPEC_TP=(${VLASIATOR_CIRUNNER_JOBSPEC_TP//\;/ })
trap "scancel -M carrington ${VLASIATOR_CIRUNNER_JOBSPEC_TP[0]}" SIGINT
trap "scancel -M carrington ${VLASIATOR_CIRUNNER_JOBSPEC_TP[0]}" SIGTERM
trap "scancel --full -M carrington ${VLASIATOR_CIRUNNER_JOBSPEC_TP[0]}" SIGINT
trap "scancel --full -M carrington ${VLASIATOR_CIRUNNER_JOBSPEC_TP[0]}" SIGTERM
RUN_STRING=$( cat << MORO
echo "Job finished, checking output."
cat testpackage_run_output.txt
Expand Down

0 comments on commit 0bc093a

Please sign in to comment.