@@ -76,6 +76,7 @@ Script options:
76
76
-p, --prefix=STR Prefix prepended to the output files
77
77
-b, --parsable Parsable SLURM message mainly used
78
78
for chained job submissions
79
+ -D, --dependency Executation dependency submission ID, optional
79
80
-c, --cache=DIR Path of the cache directory; optional
80
81
-E, [email protected] E-mail user when job starts, ends, or
81
82
fails; optional
@@ -132,15 +133,15 @@ extract_submodel="$(dirname $0)/etc/scripts/extract_subdir_level.sh" # script pa
132
133
parsedArguments=$( \
133
134
getopt --alternative \
134
135
--name " extract-dataset" \
135
- -o jhVbLE:d:i:v:o:s:e:t:l:n:p:c:m:M:S:ka:C:u: \
136
+ -o jhVbLE:d:i:v:o:s:e:t:l:n:p:c:m:M:S:ka:C:u:D: \
136
137
--long submit-job,help,version, \
137
138
--long parsable,list-datasets,email:, \
138
139
--long dataset:,dataset-dir:,variable:, \
139
140
--long output-dir:,start-date:,end-date:, \
140
141
--long time-scale:,lat-lims:,lon-lims:, \
141
142
--long prefix:,cache:,ensemble:,model:, \
142
143
--long scenario:,no-chunk,shape-file:, \
143
- --long cluster:,account: -- " $@ " \
144
+ --long cluster:,account:,dependency: -- " $@ " \
144
145
)
145
146
validArguments=$?
146
147
# check if there is no valid options
184
185
-C | --cluster) cluster=" $2 " ; shift 2 ;; # required
185
186
-a | --shape-file) shapefile=" $2 " ; shift 2 ;; # optional
186
187
-u | --account) account=" $2 " ; shift 2 ;; # optional
188
+ -D | --dependency) dependency=" $2 " ; shift 2 ;; # optional
187
189
188
190
# -- means the end of the arguments; drop this, and break out of the while loop
189
191
--) shift ; break ;;
@@ -582,6 +584,7 @@ function call_processing_func () {
582
584
--arg " logDir" " $logDir " \
583
585
--arg " email" " $email " \
584
586
--arg " parsable" " $parsable " \
587
+ --arg " dependency" " $dependency " \
585
588
--argjson " specs" " $( jq -r ' .specs' $cluster ) " \
586
589
' $ARGS.named + $specs | del(.specs)' \
587
590
) "
0 commit comments