kill scribe-hub upon mempool loop crashing

-allows docker to restart it
This commit is contained in:
Jack Robison 2022-04-04 10:33:47 -04:00
parent 60a1c2ec20
commit 1e3087953f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -223,6 +223,7 @@ class BlockchainReaderService(BlockchainService):
raise raise
except: except:
self.log.exception("blockchain reader main loop encountered an unexpected error") self.log.exception("blockchain reader main loop encountered an unexpected error")
self.shutdown_event.set()
raise raise
await asyncio.sleep(self._refresh_interval) await asyncio.sleep(self._refresh_interval)
synchronized.set() synchronized.set()