Skip to content

Instantly share code, notes, and snippets.

@knknkn1162
Last active April 11, 2019 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knknkn1162/2bf87553f586e3d93489dda49197df89 to your computer and use it in GitHub Desktop.
Save knknkn1162/2bf87553f586e3d93489dda49197df89 to your computer and use it in GitHub Desktop.
ABCI_GROUP=gca50104
EMAIL_ADDRESS="aaaaaaaaaaaaaaaaa@gggg.slack.com" # slack email address
alias qsubg="qsub -g ${ABCI_GROUP} -j y -cwd -terse -M ${EMAIL_ADDRESS} -m besa"
alias qsub_full="qsubg -l rt_F=1"
#!/bin/bash
# The role of this script is to get the first job_id to trigger other following qsub commands with hold_jid option.
sleep 10
#!/bin/bash
PREV_JOB_ID=$(qsub_gpu1 ${JOBS_PATH}/job/dummy.sh)
while true; do
CUR_JOB_ID=$(qsub_full -hold_jid ${PREV_JOB_ID} ./test.sh)
echo $CUR_JOB_ID
PREV_JOB_ID=$CUR_JOB_ID
done
# enter interactive node on ABCI
$ source loop.sh
#!/bin/bash
touch memo
echo "test ${JOB_ID}" >> memo
sleep 50
@knknkn1162
Copy link
Author

knknkn1162 commented Apr 10, 2019

  • the result is
-bash-4.2$ source loop.sh
495054
495055
// skip
496056
Unable to run job: job rejected: Only 1000 jobs are allowed per user (current job count: 1000). Job of user "aca10426zq" would exceed that limit.
Exiting.

^CUnable to read script file because of error: no input read from stdin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment