From a7013e738e929c189a41c7d9285739e429afd8c3 Mon Sep 17 00:00:00 2001 From: khurtado Date: Thu, 7 May 2020 22:22:33 +0200 Subject: [PATCH] Print warning in Executor if condor_chirp is not found. --- src/python/WMCore/WMSpec/Steps/Executor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/python/WMCore/WMSpec/Steps/Executor.py b/src/python/WMCore/WMSpec/Steps/Executor.py index 562ee55dab..ab2a2b257b 100644 --- a/src/python/WMCore/WMSpec/Steps/Executor.py +++ b/src/python/WMCore/WMSpec/Steps/Executor.py @@ -11,6 +11,7 @@ import sys import json import subprocess +import logging from Utils.FileTools import getFullPath from Utils.Utilities import zipEncodeStr @@ -193,5 +194,11 @@ def setCondorChirpAttrDelayed(self, key, value, compress=False, maxLen=5120): if condor_chirp_bin and os.access(condor_chirp_bin, os.X_OK): args = [condor_chirp_bin, 'set_job_attr_delayed', key, json.dumps(value)] subprocess.call(args) + else: + if condor_chirp_bin and not os.access(condor_chirp_bin, os.X_OK): + msg = 'condor_chirp was found in: %s, but it was not an executable.' % condor_chirp_bin + else: + msg = 'condor_chirp was not found in the system.' + logging.warning(msg) return