fatal exit if worker has exception
This commit is contained in:
@@ -240,9 +240,8 @@ class BlockStateRunner(BlockProgressor):
|
||||
else:
|
||||
log.info(f'Reverting {fork.branch} due to {e}') # runtime exception like SystemExit
|
||||
self.state.remove_branch(fork.branch)
|
||||
except Exception:
|
||||
log.exception('Unhandled exception in runner worker')
|
||||
raise
|
||||
except Exception as e:
|
||||
fatal('Unhandled exception in runner worker', exception=e)
|
||||
finally:
|
||||
log.debug('runner worker exiting')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user