Skip to content

Commit

Permalink
*fixed RunRanger parameter bug
Browse files Browse the repository at this point in the history
*using os._exit to quit the process when there is processing loop exception in anelastic or
elastic.py
  • Loading branch information
smorovic committed Jan 26, 2015
1 parent 7f9c2d3 commit 1b32f34
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions python/anelastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def run(self):
self.process()
except (KeyboardInterrupt,Queue.Empty) as e:
self.emptyQueue.set()
except Exception as ex:
self.logger.exception(ex)
self.logger.fatal("Exiting on unhandled exception")
os._exit(1)
else:
time.sleep(0.5)
#allow timeout in case 'complete' file is received and lumi is not closed
Expand Down
6 changes: 5 additions & 1 deletion python/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ def run(self):
self.emptyQueue.clear()
self.process()
except (KeyboardInterrupt,Queue.Empty) as e:
self.emptyQueue.set()
self.emptyQueue.set()
except Exception as ex:
self.logger.exception(ex)
self.logger.fatal("Exiting on unhandled exception")
os._exit(1)
else:
time.sleep(0.5)

Expand Down
2 changes: 1 addition & 1 deletion python/hltd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ def process_IN_CREATE(self, event):
if runtoend[0].checkQuarantinedLimit()==True:
hasHigherRuns = filter(lambda x: x.runnumber>nr,run_list)
if len(hasHigherRuns)>0:
runtoend[0].Shutdown()
runtoend[0].Shutdown(True)
else:
runs_pending_shutdown.append(nr)
except Exception as ex:
Expand Down
Binary file modified rpm/hltd-1.6.0-0.x86_64.rpm
Binary file not shown.

0 comments on commit 1b32f34

Please sign in to comment.