Skip to content

Commit

Permalink
Print warning in Executor if condor_chirp is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
khurtado committed May 7, 2020
1 parent 49a3210 commit a7013e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/python/WMCore/WMSpec/Steps/Executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import sys
import json
import subprocess
import logging

from Utils.FileTools import getFullPath
from Utils.Utilities import zipEncodeStr
Expand Down Expand Up @@ -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

0 comments on commit a7013e7

Please sign in to comment.