Skip to content

Commit

Permalink
exception handling for schedds
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Sep 30, 2017
1 parent b39865d commit 2c7135a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python/jobSubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,13 @@ def findRunning(self):
else:
coll = htcondor.Collector(collector)
for sch in parser_dict["schedds"][cname].split(','):
scheddAd = coll.locate(htcondor.DaemonTypes.Schedd, sch)
schedd = htcondor.Schedd(scheddAd)
for result in schedd.xquery(constraint,["Out"]):
runSet.add(self.runningToJobName(result["Out"]))
try:
scheddAd = coll.locate(htcondor.DaemonTypes.Schedd, sch)
schedd = htcondor.Schedd(scheddAd)
for result in schedd.xquery(constraint,["Out"]):
runSet.add(self.runningToJobName(result["Out"]))
except:
print "Warning: could not locate schedd "+sch

return runSet

Expand Down

0 comments on commit 2c7135a

Please sign in to comment.