fatal exit if worker has exception
This commit is contained in:
@@ -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')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user