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
{{ message }}
Repository navigation
Commit 1bd8d5e
Browse filesBrowse the repository at this point in the historyBrowse files
This adds a way to set the AliEn JDL Price (job priority) when submitting with grid_submit.sh.
- A new preamble directive #JDL_PRICE=<number> and a new option --price <number>.
- The option overrides the directive, as for the other preamble settings.
- Without either, no Price line is written and AliEn uses its default.
- The value must be a positive number.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
functionUsage() { echo"$0 --script scriptname | -c WORKDIR_RELATIVE_TO_TOP [ --jobname JOBNAME ] [ --topworkdir WORKDIR (ON TOP OF HOME) ] "; }
28
+
functionUsage() { echo"$0 --script scriptname | -c WORKDIR_RELATIVE_TO_TOP [ --jobname JOBNAME ] [ --topworkdir WORKDIR (ON TOP OF HOME) ] [ --price PRICE (JDL Price, i.e. job priority; overrides #JDL_PRICE) ] "; }
29
29
30
30
notify_mattermost() {
31
31
set +x
@@ -219,6 +219,7 @@ while [ $# -gt 0 ] ; do
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
221
--split-on-collection) DATACOLLECTION=$2;shift 2 ;; # this will split the jobs on InputDataCollection and "file" mode
222
+
--price) PRICESPEC=$2;shift 2 ;; # JDL Price (job priority; higher starts sooner). Overrides a #JDL_PRICE= preamble. Not set means the AliEn default.
222
223
--inputfile) INPUTFILES+=("$2");shift 2 ;; # extra file to pre-stage via JDL InputFile (repeatable). Accepts a bare LFN or "LF:<lfn>". Staged by AliEn before the job starts, so it is NOT charged to job CPU/walltime (unlike an in-job 'alien.py cp').
223
224
-h) Usage ;exit ;;
224
225
--help) Usage ;exit ;;
@@ -325,6 +326,16 @@ if [[ "${IS_ALIEN_JOB_SUBMITTER}" ]]; then
325
326
[[ !${IMAGESPEC} ]] && IMAGESPEC=$(grep "^#JDL_IMAGE="${SCRIPT}| sed 's/#JDL_IMAGE=//')
326
327
echo"Found Container Image to be ${IMAGESPEC}"
327
328
329
+
# -) Price (job priority)
330
+
[[ !${PRICESPEC} ]] && PRICESPEC=$(grep "^#JDL_PRICE="${SCRIPT}| sed 's/#JDL_PRICE=//')
0 commit comments