-
Notifications
You must be signed in to change notification settings - Fork 4
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
[BLOCKED] Server properties #107
Conversation
This exposes the server properties as returned by the RMQ server when connecting to clients of the async and threaded RMQ communicators. This is useful for, amongst other things, checking the server vertsion to ensure compatibility.
Looks good, I'll wait for you to work out why all the tests are failing 😅 |
@@ -345,6 +345,13 @@ async def __aexit__(self, exc_type, exc_val, exc_tb): | |||
def __str__(self): | |||
return f'RMQCommunicator({self._connection})' | |||
|
|||
@property | |||
def server_properties(self) -> Dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks, I'll try and figure out what's going on test side... |
* Added server_properties test to threaded RMQ communicator
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #107 +/- ##
===========================================
- Coverage 90.34% 90.32% -0.01%
===========================================
Files 16 16
Lines 1138 1146 +8
===========================================
+ Hits 1028 1035 +7
- Misses 110 111 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers @muhrin
Exposes information about the RMQ server to communicator clients. Could be useful for AiiDA as this allows the version number to be determined.