# Richard Jones
# May 31, 2022
#
executable = scripts.d/osg-container.sh
output = dselector.d/stdout.$(CLUSTER).$(PROCESS)
error = dselector.d/stderr.$(CLUSTER).$(PROCESS)
log = dselector.log
notification = never
universe = vanilla
should_transfer_files = yes
#x509userproxy=/tmp/x509up_u7896
transfer_input_files = scripts.d/dselector.sh,scripts.d/dselector.py,/tmp/x509up_u7896
WhenToTransferOutput = ON_EXIT
on_exit_hold = (ExitBySignal==False)&&(ExitCode!=0)&&(JobRunCount > 5)
on_exit_remove = (ExitBySignal==False)&&(ExitCode==0)
Requirements = (HAS_SINGULARITY==true)&&(regexp(".*.jlab.org",TARGET.MACHINE,"i")==FALSE)
RequestMemory = 2000
+SingularityImage = "/cvmfs/singularity.opensciencegrid.org/rjones30/gluex:latest"
arguments = ./dselector.sh $(prefix)_$(subset)_tree_pi0pippim__B0_M7.root
queue 1
