# RemoteBatchFACTORY:makeSerialStagedTemplate
# SubmissionScripts/Distributor/Batch/FACTORY/serialstaged
universe = vanilla
executable = @@{APPSCRIPTNAME}
transfer_executable = false
environment = "@@{ENVIRONMENT}"
output = factory_@@{RUNNAME}_@@{INSTANCEID}.stdout
error = factory_@@{RUNNAME}_@@{INSTANCEID}.stderr
log = factory_@@{RUNNAME}_@@{INSTANCEID}.log
notification = never
+FactoryJob = true
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
