# RemoteBatchFACTORY:makeSerialNotStagedTemplate
# SubmissionScripts/Distributor/Batch/FACTORY/serialnotstaged
universe = vanilla
executable = @@{INSTANCEDIRECTORY}/@@{APPSCRIPTNAME}
transfer_executable = true
transfer_input_files = @@{JOBID}_@@{INSTANCEID}_input.tar.gz
transfer_output_files = @@{JOBID}_@@{INSTANCEID}_output.tar.gz
environment = "@@{ENVIRONMENT}"
output = @@{INSTANCEDIRECTORY}/factory_@@{RUNNAME}_@@{INSTANCEID}.stdout
error = @@{INSTANCEDIRECTORY}/factory_@@{RUNNAME}_@@{INSTANCEID}.stderr
log = @@{INSTANCEDIRECTORY}/factory_@@{RUNNAME}_@@{INSTANCEID}.log
should_transfer_files = YES
when_to_transfer_output = ON_EXIT
notification = never
+FactoryJob = true
#+DESIRED_Sites="CMS_T2_US_Nebraska_Husker,CMS_T2_US_Nebraska_Red"
#+DESIRED_Sites="HCC_US_Nebraska_pf"
#requirements = (GLIDEIN_Entry_Name == "CMS_T2_US_Nebraska_Husker") || (GLIDEIN_Entry_Name == "CMS_T2_US_Nebraska_Red")
#requirements = (GLIDEIN_Entry_Name == "HCC_US_Nebraska_pf")
#requirements = (GLIDEIN_Entry_Name == "CMS_T2_US_Nebraska_Husker")
x509userproxy = @@{X509SUBMITPROXY}
+FactoryRefreshProxy = true
periodic_release = (CurrentTime > (EnteredCurrentStatus + 300)) && ((HoldReasonCode > 5) && (HoldReasonCode < 15))
# (Job is Held AND Error && # Holds >= 3)
periodic_remove = (JobStatus == 5) && ((HoldReasonCode > 5) && (HoldReasonCode < 15)) && (NumShadowStarts >= 3)
queue
