Skip to content

lloidhandler.py: add try except to catch stale file handle error in reading ranking stat input

Rebecca Ewing requested to merge stale-files into master

One of the most common failure modes of gstlal_inspiral jobs observed in the MDCs is a stale file handle error while reading ranking stat files,

self.rankingstat, _ = far.parse_likelihood_control_doc(ligolw_utils.load_url(self.ranking_stat_input_url, verbose = self.verbose, contenthandler = far.RankingStat.LIGOLWContentHandler))
OSError: [Errno 116] Stale file handle

We have gotten around this by adding a try/except here for OSErrors and it retries after 1 second up to 10 times before failing out.

Merge request reports