You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GRID/utils/grid_submit.sh
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ while [ $# -gt 0 ] ; do
208
208
--cores) CPUCORES=$2;shift 2 ;; # allow to specify the CPU cores (check compatibility with partition !)
209
209
--dry) DRYRUN="ON";shift 1 ;; # do a try run and not actually interact with the GRID (just produce local jdl file)
210
210
--o2tag) O2TAG=$2;shift 2 ;; #
211
-
--packagespec) PACKAGESPEC=$2;shift 2 ;; # the alisw, cvmfs package list (command separated - example: '"VO_ALICE@FLUKA_VMC::4-1.1-vmc3-1","VO_ALICE@O2::daily-20230628-0200-1"')
211
+
--packagespec) PACKAGESPEC=$2;shift 2 ;; # the alisw, cvmfs package list (command separated - example: '"VO_ALICE@FLUKA_VMC::4-1.1-vmc3-1","VO_ALICE@O2::daily-20230628-0200-1"')
212
212
--asuser) ASUSER=$2;shift 2 ;; #
213
213
--label) JOBLABEL=$2;shift 2 ;; # label identifying the production (e.g. as a production identifier)
214
214
--mattermost) MATTERMOSTHOOK=$2;shift 2 ;; # if given, status and metric information about the job will be sent to this hook
@@ -218,7 +218,8 @@ while [ $# -gt 0 ] ; do
218
218
--wait) WAITFORALIEN=ON;shift 1 ;; #wait for alien jobs to finish
219
219
--wait-any) WAITFORALIENANY=ON; WAITFORALIEN=ON;shift 1 ;; #wait for any good==done alien jobs to return
220
220
--outputspec) OUTPUTSPEC=$2;shift 2 ;; #provide comma separate list of JDL file specs to be put as part of JDL Output field (example '"*.log@disk=1","*.root@disk=2"')
221
-
-h) Usage ;exit ;;
221
+
--split-on-collection) DATACOLLECTION=$2;shift 2 ;; # this will split the jobs on InputDataCollection and "file" mode
222
+
-h) Usage ;exit ;;
222
223
--help) Usage ;exit ;;
223
224
--fetch-output) FETCHOUTPUT=ON;shift 1 ;; # if to fetch all JOB output locally (to make this job as if it ran locally); only works when we block until all JOBS EXIT
224
225
*) break ;;
@@ -355,13 +356,21 @@ if [[ "${IS_ALIEN_JOB_SUBMITTER}" ]]; then
355
356
cd"${GRID_SUBMIT_WORKDIR}"
356
357
357
358
QUOT='"'
359
+
SPLITMODE="production:1-${PRODSPLIT}"
360
+
if [ "${DATACOLLECTION}" ];then
361
+
SPLITMODE="file"
362
+
fi
358
363
# ---- Generate JDL ----------------
359
364
# TODO: Make this configurable or read from a preamble section in the jobfile
0 commit comments