Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid reprocessing matrix events #2127

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Avoid reprocessing matrix events #2127

wants to merge 3 commits into from

Conversation

IanCal
Copy link
Contributor

@IanCal IanCal commented Feb 7, 2025

Currently a single message to the bot and single chunk reply results in reprocessing the entire event list 14-15 times for a room. This skips which events we've processed before.

To deal with things that are out of order, this actually just reprocesses events from the first unseen event.

Even with this we still seem to try calling load room quite a lot, this PR just lowers the cost of doing so, and makes it a bit simpler where we want to start doing auto calling of commands.

Potentially this needs to change to more strictly process the events once.

Copy link

github-actions bot commented Feb 7, 2025

Host Test Results

    1 files  ±0      1 suites  ±0   24m 5s ⏱️ +12s
756 tests ±0  753 ✔️  - 1  2 💤 ±0  0 ±0  1 🔥 +1 
761 runs  ±0  757 ✔️  - 2  2 💤 ±0  1 +1  1 🔥 +1 

For more details on these errors, see this check.

Results for commit 594dd5a. ± Comparison against base commit 106d397.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@lukemelia lukemelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this provided all tests pass. There's a lot going on in the event processing so I don't know 100% that this won't cause any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants