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

Catch TimeoutError of add_rpc_subscriber in Process.init #81

Merged
merged 2 commits into from Oct 30, 2018

Conversation

sphuber
Copy link
Collaborator

@sphuber sphuber commented Oct 30, 2018

The add_rpc_subscriber call on the communicator in the init call
of a Process can timeout with a TimeoutError, but this should not
topple the process itself. Instead, it should log the error to notify
the user that the process won't be able to respond to RPC calls. When
it is reloaded, it has another chance to add the RPC subscriber and
continue functioning normally.

The `add_rpc_subscriber` call on the communicator in the `init` call
of a `Process` can timeout with a `TimeoutError`, but this should not
topple the process itself. Instead, it should log the error to notify
the user that the process won't be able to respond to RPC calls. When
it is reloaded, it has another chance to add the RPC subscriber and
continue functioning normally.
@sphuber sphuber requested a review from muhrin October 30, 2018 11:35
Copy link
Collaborator

@muhrin muhrin left a comment

Choose a reason for hiding this comment

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

I particularly like the deleting of TimeoutError

@muhrin muhrin merged commit 3949acc into aiidateam:develop Oct 30, 2018
@sphuber sphuber deleted the fix_add_rpc_subscriber_timeout branch October 30, 2018 13:30
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.

None yet

2 participants