fatal exit if worker has exception

This commit is contained in:
Tim
2024-04-18 16:34:51 -04:00
parent 6871187461
commit e9779d3338

View File

@@ -240,9 +240,8 @@ class BlockStateRunner(BlockProgressor):
else: else:
log.info(f'Reverting {fork.branch} due to {e}') # runtime exception like SystemExit log.info(f'Reverting {fork.branch} due to {e}') # runtime exception like SystemExit
self.state.remove_branch(fork.branch) self.state.remove_branch(fork.branch)
except Exception: except Exception as e:
log.exception('Unhandled exception in runner worker') fatal('Unhandled exception in runner worker', exception=e)
raise
finally: finally:
log.debug('runner worker exiting') log.debug('runner worker exiting')