Don't terminate the entities engine thread if a batch of entity records fails

This commit is contained in:
Fabio Manganiello 2022-04-05 23:04:57 +02:00
parent fe0f3202fe
commit 91ff47167b
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -54,7 +54,11 @@ class EntitiesEngine(Thread):
if not msgs or self.should_stop:
continue
self._process_entities(*msgs)
try:
self._process_entities(*msgs)
except Exception as e:
self.logger.error('Error while processing entity updates: ' + str(e))
self.logger.exception(e)
self.logger.info('Stopped entities engine')