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

Introduce file_mounts_sync_continuously cluster option #9544

Merged
merged 13 commits into from
Jul 28, 2020
Merged
Prev Previous commit
Next Next commit
fix bug where trying to set contents hash when it wasn't generated
alanwguo committed Jul 22, 2020
commit 37dd9b686b60c491684aaab7b69a95eec6f8d2bd
15 changes: 9 additions & 6 deletions python/ray/autoscaler/updater.py
Original file line number Diff line number Diff line change
@@ -79,12 +79,15 @@ def run(self):
return
raise

self.provider.set_node_tags(
self.node_id, {
TAG_RAY_NODE_STATUS: STATUS_UP_TO_DATE,
TAG_RAY_RUNTIME_CONFIG: self.runtime_hash,
TAG_RAY_FILE_MOUNTS_CONTENTS: self.file_mounts_contents_hash,
})
tags_to_set = {
TAG_RAY_NODE_STATUS: STATUS_UP_TO_DATE,
TAG_RAY_RUNTIME_CONFIG: self.runtime_hash,
}
if self.file_mounts_contents_hash is not None:
tags_to_set[
TAG_RAY_FILE_MOUNTS_CONTENTS] = self.file_mounts_contents_hash

self.provider.set_node_tags(self.node_id, tags_to_set)

self.exitcode = 0