Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle HTCondor "Unable to locate local daemon" Error #12172

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/python/WMComponent/JobSubmitter/JobSubmitterPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,15 @@ def submitJobs(self, jobsToSubmit):
myThread.transaction.begin()

# Run the actual underlying submit code using bossAir
successList, failList = self.bossAir.submit(jobs=jobList)
try:
successList, failList = self.bossAir.submit(jobs=jobList)

except Exception as ex:
msg = "Error submitting jobs: %s" % str(ex)
logging.error(msg)
myThread.logdbClient.post("JobSubmitter_submitWork", msg, "error")
raise WMException(msg) from ex

logging.info("Jobs that succeeded/failed submission: %d/%d.", len(successList), len(failList))

# Propagate states in the WMBS database
Expand Down
8 changes: 7 additions & 1 deletion src/python/WMCore/BossAir/StatusPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,14 @@ def checkStatus(self):
and then check for jobs that have timed out.
"""

try:
runningJobs = self.bossAir.track()
except Exception as ex:
msg = "Error in BossAir track call: %s" % str(ex)
logging.error(msg)
runningJobs = []
raise WMException(msg)from ex

runningJobs = self.bossAir.track()

if len(runningJobs) < 1:
# Then we have no jobs
Expand Down