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

[FEAT] Async Consumer-based Klatchat Observer #109

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

NeonKirill
Copy link
Collaborator

Description

Updated klat observer service to work based on async consumer threads

@NeonKirill NeonKirill requested a review from NeonDaniel December 3, 2024 21:42
Copy link
Member

@NeonDaniel NeonDaniel left a comment

Choose a reason for hiding this comment

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

I don't know how to test this locally, but this looks to be ready for alpha testing

@@ -7,7 +7,7 @@ httpx==0.27.0 # required by FastAPI
Jinja2==3.1.3
jsbeautifier==1.15.1
kubernetes==29.0.0
neon-mq-connector~=0.7
neon-mq-connector==0.7.2a5
Copy link
Member

Choose a reason for hiding this comment

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

~=0.7,>=0.7.2a5 here would allow this to continue pulling newer compatible releases without explicit updates to dependencies

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

~=0.7,>=0.7.2a5 here would allow this to continue pulling newer compatible releases without explicit updates to dependencies

Yeah, good point, but I think lets keep it strict until there will be next stable release

@@ -509,9 +511,7 @@ def handle_message(self, data: dict):
or Recipients.UNRESOLVED
)
handler_method = self.recipient_to_handler_method.get(recipient)
if not handler_method:
LOG.warning(f"Failed to get handler message for recipient={recipient}")
Copy link
Member

Choose a reason for hiding this comment

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

Is this log worth keeping? Without it, I'm not sure there's any way to see in logs if a message was received

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is this log worth keeping? Without it, I'm not sure there's any way to see in logs if a message was received

It was pointlessly spamming on every single message that occurred in klat, so I believe we can remove it for now, as we did not really use it so far

@NeonKirill NeonKirill merged commit cb30b81 into alpha Dec 3, 2024
2 checks passed
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.

3 participants