Skip to content

Commit

Permalink
better loggin of error contactin schedd (#8790)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Nov 15, 2024
1 parent e1fc382 commit 46be95a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/script/Monitor/GenerateMONIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,10 @@ def execute(self):
# if one schedd does not answer, go on and try the others
try:
scheddAdd = self.coll.locate(htcondor.DaemonTypes.Schedd, scheddName)
except Exception:
schedd = htcondor.Schedd(scheddAdd)
except Exception as e:
print(f"faild to contact {scheddName}:\n{e}")
continue
schedd = htcondor.Schedd(scheddAdd)
try:
idleDags = schedd.query(pickSchedulerIdle)
except Exception:
Expand Down

0 comments on commit 46be95a

Please sign in to comment.