if ad and not "CRAB3_RUNTIME_DEBUG" in os.environ: earlyDashboardFailure(ad) print("==== FAILURE WHEN LOADING WMCORE AT %s ====" % time.asctime(time.gmtime())) print(traceback.format_exc()) mintime() sys.exit(10043) # At this point, all our dependent libraries have been loaded; it's quite # unlikely python will see a segfault. Drop a marker file in the working # directory; if we encounter a python segfault, the wrapper will look to see if # this file exists and report to Dashboard accordingly. with open("wmcore_initialized", "w") as fd: fd.write("wmcore initialized.\n") try: setupLogging('.') # Also add stdout to the logging logHandler = logging.StreamHandler(sys.stdout) logFormatter = logging.Formatter("%(asctime)s:%(levelname)s:%(module)s:%(message)s") logging.Formatter.converter = time.gmtime logHandler.setFormatter(logFormatter) logging.getLogger().addHandler(logHandler) if ad and not "CRAB3_RUNTIME_DEBUG" in os.environ: startDashboardMonitoring(ad) print("==== CMSSW Stack Execution STARTING at %s ====" % time.asctime(time.gmtime())) scram = Scram( version = opts.cmsswVersion, directory = os.getcwd(), architecture = opts.scramArch,
earlyDashboardFailure(ad) print("==== FAILURE WHEN LOADING WMCORE AT %s ====" % time.asctime(time.gmtime())) print(traceback.format_exc()) mintime() sys.exit(10043) # At this point, all our dependent libraries have been loaded; it's quite # unlikely python will see a segfault. Drop a marker file in the working # directory; if we encounter a python segfault, the wrapper will look to see if # this file exists and report to Dashboard accordingly. with open("wmcore_initialized", "w") as mf: mf.write("wmcore initialized.\n") try: setupLogging('.') # following commented lines are not needed anymore with new scram() in WMCore 1.2+ # Also add stdout to the logging #logHandler = logging.StreamHandler(sys.stdout) #logFormatter = logging.Formatter("%(asctime)s:%(levelname)s:%(module)s:%(message)s") #logging.Formatter.converter = time.gmtime #logHandler.setFormatter(logFormatter) #logging.getLogger().addHandler(logHandler) if ad and not "CRAB3_RUNTIME_DEBUG" in os.environ: startDashboardMonitoring(ad) print("==== CMSSW Stack Execution STARTING at %s ====" % time.asctime(time.gmtime())) scr = Scram( version=options.cmsswVersion,