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

Missing fail security #40

Open
ftrueck opened this issue Jun 28, 2024 · 0 comments
Open

Missing fail security #40

ftrueck opened this issue Jun 28, 2024 · 0 comments

Comments

@ftrueck
Copy link

ftrueck commented Jun 28, 2024

The docker container crashes if something goes wrong.
In terms of fail security it would be better if the tasks fail gracefully with a chance of recovery so that you do not need to start your docker every time an exception occours.

Examples:

  • if you send wrong commands via mqtt the script exits and the container stops
  • if a device (ac unit) is not reachable via network the script crashes
  • if a DNS resolve fails the script crashes
  • sometimes the script crashes when a command gets send double in too short amount of time

These kind of errors should not crash the entire script as there may be other units that are still functional and can be operated.

The solution would be a bunch of try-catch directives to protect the main thread of the application to remain operational.

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

No branches or pull requests

1 participant