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

Large Wait time if the Windows Service is not running from the Spectrometer Adapter #3

Open
ANeaves opened this issue Apr 29, 2022 · 1 comment
Assignees

Comments

@ANeaves
Copy link
Contributor

ANeaves commented Apr 29, 2022

Because the Spectrometer Adapter uses ZeroRPC to communicate with the Windows Bridge Service, it can cause a lot of waiting should the service not be running, as each call to it has a timeout of 5 seconds. Reducing this may help, but the timeout can still cause issues of long waits simply because of the amount of calls the Adapter makes each second when trying to refresh its information.

Ideally, this would be fixed by checking once if the service is responding, and then not attempting further calls if it fails

@ANeaves ANeaves self-assigned this May 3, 2022
@ANeaves
Copy link
Contributor Author

ANeaves commented May 3, 2022

Create a simple heartbeat "are you there" method in the bridge script that can quickly be requested before requesting all the data. Modify the timeout on the request to make this one check super quick so checking if the bridge script is live does not take too long.

Then, the bridge script can use psutil to check if Lightfield is actually running. Similar to how it checks if it needs to stop a zombie process running, but find some way to differentiate the zombie process from the currently live one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant