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

Add timeout of 60s for exec-ed commands as a safeguard. #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valentinvarbanov
Copy link

The python would sometimes get stuck on executing command like: python /usr/local/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.x.x -i.
This python process would stuck on near 100% cpu usage and the raspberry pi would have increased cpu temperature by 20-30 degrees.

This change should not have any negative side effects, as in normal use cases 60s should be enough for a command to execute.

@valentinvarbanov
Copy link
Author

@sahilchaddha Do you plan to merge this?

@valentinvarbanov valentinvarbanov mentioned this pull request Oct 1, 2021
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.

1 participant