-
Notifications
You must be signed in to change notification settings - Fork 36
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
Enable the user change the setup of the cluster check process #836
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: runhouse/servers/cluster_servlet.py
Did you find this useful? React with a 👍 or 👎 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -1645,3 +1658,44 @@ def _check_for_child_configs(cls, config: dict): | |||
config["default_env"] = default_env | |||
|
|||
return config | |||
|
|||
def _is_den_authed_and_saved_to_den(self, change_type: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if this check is necessary, is there any harm in just updating the config with the interval field regardless if status check is explicitly enabled or disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlewitt1 Removed the check if the cluster is saved into den. If it is not, the post request will raise an error, which we catch and send an error log, explaining that the cluster is not saved and therefore we can't post its status.
If left the check of den_auth == True because:
- It is not pinging den, therefore it is a "cheap" check
- I think it is in our interests to clarify to the user that this is a feature requires Den auth / Den user. wdyt?
if interval_size == -1: | ||
if is_config_updated: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should add a log here anytime the config is updated, not just when its turned off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlewitt1 This log is added as part of aupdate_status_check_interval_in_cluster_config
method
8f27a55
to
66095b0
Compare
66095b0
to
91d0286
Compare
""" | ||
Stopping consecutively sending status to Den. | ||
""" | ||
if not self.den_auth: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if i have a cluster with den auth enabled, then i decide to disable it. Will the status check still continue in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlewitt1 yeah good point, I updated the logic so the status check will stop in that case.
91d0286
to
0903dca
Compare
No description provided.