Skip to content
Snippets Groups Projects
Commit 846fd377 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Improve exit message

parent 406e17bc
No related branches found
No related tags found
1 merge request!746Pickle dump entire sampler in dynesty
Pipeline #112148 passed
......@@ -387,7 +387,14 @@ class Dynesty(NestedSampler):
return False
def write_current_state_and_exit(self, signum=None, frame=None):
logger.warning("Run terminated with signal {}".format(signum))
if signum == 14:
logger.info(
"Run interrupted by alarm signal {}: checkpoint and exit on {}"
.format(signum, self.exit_code))
else:
logger.info(
"Run interrupted by signal {}: checkpoint and exit on {}"
.format(signum, self.exit_code))
self.write_current_state()
os._exit(self.exit_code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment