@@ -177,11 +177,9 @@ def make_cert_paths(cert_dir="/tmp"):
177177 return cert_path , key_path
178178
179179
180- def get_NotAfter (year , period , run , passname , samples = 9 , ccdb_check_path = "TPC/Calib/CorrectionMapV2" , ccdb_check = True ):
180+ def get_NotAfter (year , period , run , passname , samples = 9 ):
181181 """
182182 Estimates the CCDBTimeMachine NotAfter timestamp from the output of the production of a given period/run/pass.
183- Cross-checks the estimated NotAfter timestamp vs the creation time of a CCDB object which is currently
184- valid for the given run.
185183
186184 Returns:
187185 int: CCDBTimeMachineTS NotAfter timestamp
@@ -215,9 +213,6 @@ def get_NotAfter(year, period, run, passname, samples=9, ccdb_check_path="TPC/Ca
215213 f"span { human (min (ctimes ))} .. { human (max (ctimes ))} ({ spread_h :.1f} h)" )
216214 print_info (f"Recommended NotAfter: { not_after } ({ human (not_after )} )" )
217215
218- if ccdb_check :
219- ccdb_cross_check (run , ccdb_check_path , not_after )
220-
221216 return not_after
222217
223218
@@ -291,8 +286,7 @@ def upload_CCDBTimeMachineTS(base_url, user, keys):
291286
292287
293288def get_CCDBTimeMachineTS (production_tag , year , period , run , passname ,
294- samples = 9 , ccdb_check_path = "TPC/Calib/CorrectionMapV2" , ccdb_check = True ,
295- ccdb_url = "https://alice-ccdb.cern.ch" , username = "aliprod" ,
289+ samples = 9 , ccdb_url = "https://alice-ccdb.cern.ch" , username = "aliprod" ,
296290 force_overwrite = False , publish_to_ccdb = True , skip_ccdb_query = False ):
297291 """
298292 Makes a query to CCDB for a CCDBTimeMachineTS for given period and pass.
@@ -310,7 +304,7 @@ def get_CCDBTimeMachineTS(production_tag, year, period, run, passname,
310304 if not found or force_overwrite :
311305 print_info ("Estimating CCDBTimeMachineTS for "
312306 f"LPMProductionTag: { production_tag } , Period: { period } , Pass: { passname } " )
313- not_after = get_NotAfter (year , period , run , passname , samples , ccdb_check_path , ccdb_check )
307+ not_after = get_NotAfter (year , period , run , passname , samples )
314308
315309 if publish_to_ccdb :
316310 if skip_ccdb_query :
@@ -368,8 +362,11 @@ def main():
368362 parser .error ("missing required value(s): " + ", " .join (missing ))
369363
370364 not_after = get_CCDBTimeMachineTS (args .production_tag , args .year , args .period , args .run , args .passname ,
371- args .samples , args .ccdb_check_path , not args .no_ccdb_check , args .ccdb_url , args .username ,
372- args .force_overwrite , args .publish_to_ccdb , args .skip_ccdb_query )
365+ args .samples , args .ccdb_url , args .username ,
366+ args .force_overwrite , args .publish_to_ccdb , args .skip_ccdb_query )
367+ if not args .no_ccdb_check :
368+ ccdb_cross_check (args .run , args .ccdb_check_path , not_after )
369+
373370 print (not_after )
374371
375372
0 commit comments