File tree Expand file tree Collapse file tree 5 files changed +23
-23
lines changed
launch_scripts/merge_trees Expand file tree Collapse file tree 5 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 33date
44source ~ /env_monitoring_launch.sh
55export PATH=/site/bin:${PATH} # because .login isn't executed, and need this path for SWIF
6- python ~ /monitoring/ merge_trees/merge_trees.py ~ /monitoring /merge_trees/jobs_merge.config 0
6+ python ~ /hd_utilities/launch_scripts/ merge_trees/merge_trees.py ~ /hd_utilities/launch_scripts /merge_trees/jobs_merge.config 0
77
Original file line number Diff line number Diff line change 33# Min Hour Day Month Weekday Command
44#-----------------------------------------------------------------------------
55MAILTO=aaustreg@jlab.org
6- */15 * * * * /bin/bash -c ~/monitoring/ merge_trees/cron_exec.sh > /home/gxproj1 /merge_trees.log 2>&1
6+ */15 * * * * /bin/bash -c ~/hd_utilities/launch_scripts/ merge_trees/cron_exec.sh > /home/gxproj6 /merge_trees.log 2>&1
Original file line number Diff line number Diff line change 66# For files & directories: Must specify full path
77
88# SCICOMP JOB ACCOUNTING
9- PROJECT halld # http://scicomp.jlab.org/scicomp/#/projects
10- TRACK production # https://scicomp.jlab.org/docs/batch_job_tracks
11- OS general
9+ PROJECT halld-pro # http://scicomp.jlab.org/scicomp/#/projects
10+ TRACK production # https://scicomp.jlab.org/docs/batch_job_tracks
11+ OS el9
1212
1313# JOB RESOURCES
1414NCORES 1
15- DISK 500GB
16- RAM 8GB
17- TIMELIMIT 8hrs
15+ DISK 1000GB
16+ RAM 4GB
17+ TIMELIMIT 16hrs
1818
19- RUNPERIOD 2017 -01
20- VERSION 01
21- BATCH 01
19+ RUNPERIOD 2018 -01
20+ VERSION 24
21+ BATCH 04
2222WORKFLOW analysis_[RUNPERIOD]_ver[VERSION]_batch[BATCH] # Input workflow
2323
2424# JOB, SCRIPT CONTROL
25- ENVFILE /home/gxproj1/env_monitoring_launch .sh
26- SCRIPTFILE /home/gxproj1/monitoring /merge_trees/script.sh
27- CACHE_PIN_DAYS 60 # max is 60, 0 or comment-out for none
25+ ENVFILE /home/gxproj6/env_analysis_launch .sh
26+ SCRIPTFILE /home/gxproj6/hd_utilities/launch_scripts /merge_trees/script.sh
27+ CACHE_PIN_DAYS 0 # max is 60, 0 or comment-out for none
2828
2929# FILE INPUT, OUTPUT BASE DIRECTORIES
3030INDATA_TOPDIR /volatile/halld/analysis/RunPeriod-[RUNPERIOD]/ver[VERSION]/
Original file line number Diff line number Diff line change @@ -381,25 +381,25 @@ def main(argv):
381381 print ("Retry failed jobs in the launch workflow: " )
382382 command = "/usr/local/bin/swif2 retry-jobs -workflow " + LAUNCH_WORKFLOW + " -problems SLURM_FAILED SLURM_CANCELLED SLURM_NODE_FAIL SITE_LAUNCH_FAIL SITE_PREP_FAIL SWIF_INPUT_FAIL SWIF_SYSTEM_ERROR"
383383 if VERBOSE > 1 :
384- print (command )
384+ print (command )
385385 try_command (command )
386386
387387 # MODIFY FAILED JOBS
388- command = "swif2 modify-jobs -ram add 4gb -workflow " + LAUNCH_WORKFLOW + " -problems SLURM_OUT_OF_MEMORY"
388+ command = "swif2 modify-jobs -ram add 4gb -workflow " + LAUNCH_WORKFLOW + " -problems SLURM_OUT_OF_MEMORY"
389389 if VERBOSE > 1 :
390- print command
391- try_command (command )
390+ print ( command )
391+ try_command (command )
392392
393- command = "swif2 modify-jobs -time add 4h -workflow " + LAUNCH_WORKFLOW + " -problems SLURM_TIMEOUT"
393+ command = "swif2 modify-jobs -time add 4h -workflow " + LAUNCH_WORKFLOW + " -problems SLURM_TIMEOUT"
394394 if VERBOSE > 1 :
395- print command
396- try_command (command )
395+ print ( command )
396+ try_command (command )
397397
398398
399399 print ("Retry failed jobs in the merge workflow: " )
400400 command = "/usr/local/bin/swif2 retry-jobs -workflow " + MERGE_WORKFLOW + " -problems SLURM_CANCELLED SLURM_TIMEOUT SLURM_NODE_FAIL SITE_LAUNCH_FAIL SITE_PREP_FAIL SWIF_INPUT_FAIL SWIF_SYSTEM_ERROR"
401401 if VERBOSE > 1 :
402- print (command )
402+ print (command )
403403 try_command (command )
404404
405405
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Merge_Files()
5151
5252 # cp -v $INPUTDIR/$TYPE/$RUN/${TYPE}_${RUN}_*.root .
5353
54- LD_PRELOAD=/home/gxproj6/monitoring /merge_trees/startup_C.so hadd $TEMP_FILE $INPUTDIR /$TYPE /$RUN /${TYPE} _${RUN} _* .root
54+ LD_PRELOAD=/home/gxproj6/hd_utilities/launch_scripts /merge_trees/startup_C.so hadd $TEMP_FILE $INPUTDIR /$TYPE /$RUN /${TYPE} _${RUN} _* .root
5555 # hadd $TEMP_FILE $INPUTDIR/$TYPE/$RUN/${TYPE}_${RUN}_*.root
5656 # RETURN CODE
5757 RETURN_CODE=$?
You can’t perform that action at this time.
0 commit comments