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

Restructure grabber.py #19

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Restructure grabber.py #19

merged 4 commits into from
Jan 8, 2025

Conversation

nothingface0
Copy link
Contributor

@nothingface0 nothingface0 commented Jan 8, 2025

  • Added more exception handling for cases that the cluster is unreachable.
  • Split code into more functions to isolate functionality.

Initially, there was an idea to investigate whether, in the case that the playback BU machine is unreachable (the one that is used as a proxy for the other machines), cluster statuses for each host signifying they are "down" should be created or not. This is not necessarily a good idea, as it does not reflect reality: if the proxy machine is down, we cannot know whether the other machines are down or not. Only if the proxy machine is up, can we know for sure what the situation really is. For this reason, it was decided not to implement such a functionality.

The downside is that, if the proxy machine is down, we will not be getting any cluster status updates for any machine, meaning that the DB will only contain the last one available, which might be stale.

Cleanup of logging as well, edit of a docstring.
- Split code into more functions to isolate functionality
- Added more exception handling for cases
  that the cluster is unreachable.
@nothingface0 nothingface0 force-pushed the handle_unavailable_machines branch from ed67f75 to 5031947 Compare January 8, 2025 14:22
@nothingface0 nothingface0 merged commit bd9e4d1 into dev Jan 8, 2025
2 checks passed
@nothingface0 nothingface0 deleted the handle_unavailable_machines branch January 8, 2025 14:51
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