Skip to content

Conversation

@BentiGorlich
Copy link
Member

  • when creating a post of any kind the actor needs to be a user in the mbin context, so check for that. If the actor is not a user we get a bunch of type errors which severely slow the messengers down

I had this problem with a pleroma post from a group actor. My message rate plummeted:
grafik

Which lead to me banning the origin instance. I could not check whether this fix worked, but it should. Either way, since we can get a Magazine from findActorOrCreate it should be done anyway.

- when creating a post of any kind the actor needs to be a user in the mbin context, so check for that. If the actor is not a user we get a bunch of type errors which severely slow the messengers down
@BentiGorlich BentiGorlich added bug Something isn't working backend Backend related issues and pull requests labels Apr 22, 2025
@BentiGorlich BentiGorlich requested a review from melroy89 April 22, 2025 21:51
@BentiGorlich BentiGorlich self-assigned this Apr 22, 2025
@BentiGorlich
Copy link
Member Author

It seems like this does not speed up the processing, but at least the error message is clearer and the messages just get removed from the transport now. I think I just have a ridiculous amount of them in my queue. I just don't know where they are coming from

Copy link
Member

@melroy89 melroy89 left a comment

Choose a reason for hiding this comment

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

Great catch!

@melroy89
Copy link
Member

It seems like this does not speed up the processing, but at least the error message is clearer and the messages just get removed from the transport now.

Less messengers in transport/queue means less CPU and memory usage of RabbitMQ. Which in general could be beneficial for performance. Especially on very large instances.

@BentiGorlich BentiGorlich merged commit 8c265b7 into main Apr 23, 2025
7 checks passed
@BentiGorlich BentiGorlich deleted the fix/messenger-stuck-group-post branch April 23, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend related issues and pull requests bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants