Track where event stream processing have gotten up to

This commit is contained in:
Erik Johnston 2018-04-11 11:07:51 +01:00
parent ab825aa328
commit 92e34615c5
4 changed files with 24 additions and 0 deletions

View file

@ -111,6 +111,10 @@ class ApplicationServicesHandler(object):
events_processed_counter.inc_by(len(events))
yield self.store.set_appservice_last_pos(upper_bound)
synapse.metrics.event_processing_positions.set(
upper_bound, "appservice_sender",
)
finally:
self.is_processing = False