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(
866
866
event .room_id , event_id , str (err )
867
867
)
868
868
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
869
874
870
875
try :
871
876
try :
@@ -908,6 +913,11 @@ async def _process_pulled_event(
908
913
logger .warning ("Pulled event %s failed history check." , event_id )
909
914
else :
910
915
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
911
921
912
922
@trace
913
923
async def _compute_event_context_with_maybe_missing_prevs (
You can’t perform that action at this time.
0 commit comments