Skip to content
Snippets Groups Projects
Commit 998d515e authored by Thomas Reis's avatar Thomas Reis
Browse files

Add additional logging to HLT validation handlers.

parent ecd983a1
No related branches found
No related tags found
No related merge requests found
Pipeline #12045343 passed
......@@ -91,6 +91,7 @@ class HLTValidationHandler(HTCHandler):
sqlitefile = list(sqlitefiles)[0] if len(sqlitefiles) > 0 else ''
gethltmenucmd += [sqlitefile, 'EcalIntercalibConstants', 'EcalIntercalibConstantsRcd', '']
# get the HLT menu to be submitted for this group
self.log.info(f"Getting the HLT menu for run {run['run_number']}, to be used with data from run(s): "+",".join([r['run_number'] for r in group]))
subprocess.run(gethltmenucmd, capture_output=False)
# save HLT menu for resubmissions
......@@ -98,6 +99,7 @@ class HLTValidationHandler(HTCHandler):
if not path.isdir(outdir):
makedirs(outdir)
menufile = 'hltref.py' if self.opts.refcond else 'hltval.py'
self.log.info(f"Storing HLT configuration file in {outdir}/{menufile}.")
system(f'cp hltval/hlt.py {outdir}/{menufile}')
jctrl = JobCtrl(task=self.task,
......@@ -215,6 +217,7 @@ class HLTValidationHandler(HTCHandler):
# retrieve HLT menu
menudir = path.abspath(self.opts.eosdir + f'/{fill}/')
menufile = 'hltref.py' if self.opts.refcond else 'hltval.py'
self.log.info(f"Getting HLT configuration file from {menudir}/{menufile}.")
system(f'cp {menudir}/{menufile} hltval/hlt.py')
with open('args.txt', 'w') as ff:
......
......
......@@ -85,6 +85,7 @@ class PSValidationHandler(HTCHandler):
runtype = self.get_runtype(hltkey) if hltkey != None else 'pp'
task = f'-w {self.task} -c {self.campaign} -t run_number:{run["run_number"]},fill:{fill} --db {self.opts.dbname}'
# get the HLT menu to be submitted for this group
self.log.info(f"Getting the HLT menu for run {run['run_number']}, to be used with data from run(s): "+",".join([r['run_number'] for r in group]))
subprocess.run(['bash', 'getHltMenu.sh', fdict[0], run['globaltag'], task, runtype], capture_output=False)
# save HLT menu for resubmissions
......@@ -92,6 +93,7 @@ class PSValidationHandler(HTCHandler):
if not path.isdir(outdir):
makedirs(outdir)
menufile = 'hltref.py' if self.opts.refcond else 'hltval.py'
self.log.info(f"Storing HLT configuration file in {outdir}/{menufile}.")
system(f'cp hlt.py {outdir}/{menufile}')
jctrl = JobCtrl(task=self.task,
......@@ -208,6 +210,7 @@ class PSValidationHandler(HTCHandler):
# retrieve HLT menu
menudir = path.abspath(self.opts.eosdir + f'/{fill}/')
menufile = 'hltref.py' if self.opts.refcond else 'hltval.py'
self.log.info(f"Getting HLT configuration file from {menudir}/{menufile}.")
system(f'cp {menudir}/{menufile} hlt.py')
with open('args.txt', 'w') as ff:
......
......
......@@ -100,6 +100,7 @@ class TimingValidationHandler(HTCHandler):
runtype = self.get_runtype(hltkey) if hltkey != None else 'pp'
task = f'-w {self.task} -c {self.campaign} -t run_number:{run["run_number"]},fill:{fill} --db {self.opts.dbname}'
# get the HLT menu to be submitted for this group
self.log.info(f"Getting the HLT menu for run {run['run_number']}, to be used with data from run(s): "+",".join([r['run_number'] for r in group]))
subprocess.run(['bash', 'hltval/getHltMenu.sh', fdict[0], run['globaltag'], task, runtype], capture_output=False)
# save HLT menu for resubmissions
......@@ -107,6 +108,7 @@ class TimingValidationHandler(HTCHandler):
if not path.isdir(outdir):
makedirs(outdir)
menufile = 'hltref.py' if self.opts.refcond else 'hltval.py'
self.log.info(f"Storing HLT configuration file in {outdir}/{menufile}.")
system(f'cp hltval/hlt.py {outdir}/{menufile}')
jctrl = JobCtrl(task=self.task,
......@@ -223,6 +225,7 @@ class TimingValidationHandler(HTCHandler):
# retrieve HLT menu
menudir = path.abspath(self.opts.eosdir + f'/{fill}/')
menufile = 'hltref.py' if self.opts.refcond else 'hltval.py'
self.log.info(f"Getting HLT configuration file from {menudir}/{menufile}.")
system(f'cp {menudir}/{menufile} hltval/hlt.py')
with open('args.txt', 'w') as ff:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment