mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-07 17:31:56 +00:00
parent
3fd68d533b
commit
9ea408441f
@ -191,6 +191,8 @@ def run_as_background_process(desc, func, *args, **kwargs):
|
||||
|
||||
try:
|
||||
yield func(*args, **kwargs)
|
||||
except Exception:
|
||||
logger.exception("Background process '%s' threw an exception", desc)
|
||||
finally:
|
||||
proc.update_metrics()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user