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: update plugin refresh to also update active/inactive state #381

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

edaniszewski
Copy link
Contributor

This PR:

  • updates the /plugin?refresh=true mechanic to also update the active/inactive state

Previously, it did not do this intentionally, the idea being that the background task would be solely in charge of updating the active state. In practice, while debugging a different issue, I found that when doing a manual restart of plugins which could take a little time depending on what you are doing, this lead the exponential backoff to get to some high wait times, so even though the plugin was back online, Synse wasn't retrying its connection to it. Adding this manual means of kicking it to refresh active state means we can ensure plugin state is up to date.

Copy link
Contributor

@marcoceppi marcoceppi left a comment

Choose a reason for hiding this comment

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

This is a great QOL update!

Copy link
Contributor

@MatthewHink MatthewHink left a comment

Choose a reason for hiding this comment

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

This is useful for sure

@edaniszewski edaniszewski merged commit 7768aa4 into v3/staging Mar 20, 2020
@edaniszewski edaniszewski deleted the v3/refresh-active-state branch March 20, 2020 17:17
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