This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1- Keep track when we attempt to backfill an event but fail so we can intelligently back-off in the future.
1+ Keep track when we fail to process a pulled event over federation so we can intelligently back-off in the future.
Original file line number Diff line number Diff line change 1+ Keep track when we fail to process a pulled event over federation so we can intelligently back-off in the future.
Original file line number Diff line number Diff line change @@ -866,6 +866,11 @@ async def _process_pulled_event(
866866 event .room_id , event_id , str (err )
867867 )
868868 return
869+ except Exception as exc :
870+ await self ._store .record_event_failed_pull_attempt (
871+ event .room_id , event_id , str (exc )
872+ )
873+ raise exc
869874
870875 try :
871876 try :
@@ -908,6 +913,11 @@ async def _process_pulled_event(
908913 logger .warning ("Pulled event %s failed history check." , event_id )
909914 else :
910915 raise
916+ except Exception as exc :
917+ await self ._store .record_event_failed_pull_attempt (
918+ event .room_id , event_id , str (exc )
919+ )
920+ raise exc
911921
912922 @trace
913923 async def _compute_event_context_with_maybe_missing_prevs (
You can’t perform that action at this time.
0 commit comments