File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,6 @@ function call_processing_func () {
450450 --arg " logDir" " $logDir " \
451451 --arg " email" " $email " \
452452 --arg " parsable" " $parsable " \
453- --arg " dependency" " $dependency " \
454453 --argjson " specs" " $( jq -r ' .specs' $cluster ) " \
455454 ' $ARGS.named + $specs | del(.specs)' \
456455 ) "
@@ -525,6 +524,13 @@ function call_processing_func () {
525524 # 1. job scheduler directives
526525 m4 ${jobDirectiveM4} ${schedulersPath} /${scheduler} .m4 > \
527526 ${jobScriptPath}
527+
528+ # 1.5 Due to M4's limitation in processing comma-separated values,
529+ # adjust dependencies manually
530+ if [[ -n " $dependency " ]]; then
531+ dependencyLine=" #SBATCH --dependency=afterok:$dependency "
532+ sed -i " 2i\\ ${dependencyLine} " " ${jobScriptPath} "
533+ fi
528534
529535 # 2. module inititation, if applicable
530536 echo -e " \n${jobModulesInit} " >> " ${jobScriptPath} "
You can’t perform that action at this time.
0 commit comments