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

fix bug where plugin active state was not being set on timeout error for reads #380

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

edaniszewski
Copy link
Contributor

This PR:

  • fixes a bug where plugin state was not being set to inactive if a read failed (timeout error). this was because the value returned by the client is a generator, but generator iteration happened outside the scope of the client context, which is where the plugin activity state gets set when the context is exited with an error.
  • adds a __repr__ definition to the Plugin class so logged collections of plugins are human readable
  • adds regression test for the bugfix

fixes #379

@edaniszewski edaniszewski merged commit 757878f into v3/staging Mar 20, 2020
@edaniszewski edaniszewski deleted the v3/read-active-state-bug branch March 20, 2020 15:02
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.

plugin timeout error on read fails to update plugin state to inactive
3 participants